Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

void function recentf-ido-find-file #6

Closed
jrhorn424 opened this issue Aug 30, 2011 · 2 comments
Closed

void function recentf-ido-find-file #6

jrhorn424 opened this issue Aug 30, 2011 · 2 comments

Comments

@jrhorn424
Copy link
Contributor

Somewhere, I got used to functionality similar to that provided by this function on emacs wiki:

    (defun recentf-ido-find-file ()
      "Find a recent file using Ido."
      (interactive)
      (let* ((file-assoc-list
          (mapcar (lambda (x)
                (cons (file-name-nondirectory x)
                  x))
              recentf-list))
         (filename-list
          (remove-duplicates (mapcar #'car file-assoc-list)
                     :test #'string=))
         (filename (ido-completing-read "Choose recent file: "
                        filename-list
                        nil
                        t)))
        (when filename
          (find-file (cdr (assoc filename
                     file-assoc-list))))))

I think this (or something similar) was defined in an earlier version of the starter kit. I haven't been able to find it in related core libraries, and it isn't in any of my customization files. It's very handy, especially since it's bound to C-x f in starter-kit-bindings.org.

@eschulte
Copy link
Owner

eschulte commented Sep 4, 2011

jrhorn424
reply@reply.github.com
writes:

Somewhere, I got used to functionality similar to that provided by this function on emacs wiki:

  (defun recentf-ido-find-file ()
    "Find a recent file using Ido."
    (interactive)
    (let* ((file-assoc-list
        (mapcar (lambda (x)
              (cons (file-name-nondirectory x)
                x))
            recentf-list))
       (filename-list
        (remove-duplicates (mapcar #'car file-assoc-list)
                   :test #'string=))
       (filename (ido-completing-read "Choose recent file: "
                      filename-list
                      nil
                      t)))
      (when filename
        (find-file (cdr (assoc filename
                   file-assoc-list))))))

I think this (or something similar) was defined in an earlier version of the starter kit. I haven't been able to find it in related core libraries, and it isn't in any of my customization files. It's very handy, especially since it's bound to C-x f in starter-kit-bindings.org.

I see, would you mind submitting a patch (or pull request) which adds
this function to starter-kit-defuns.org?

Thanks -- Eric

Eric Schulte
http://cs.unm.edu/~eschulte/

@jrhorn424
Copy link
Contributor Author

I see. Will do soon.

nmurthy pushed a commit to nmurthy/emacs24-starter-kit that referenced this issue Jul 17, 2012
Highlight C conditionals and loops
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants