Created
April 1, 2010 16:01
-
-
Save mori-dev/351987 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(setq anything-c-source-recentf | |
'((name . "Recentf") | |
(init . (lambda () | |
(require 'recentf) | |
(or recentf-mode (recentf-mode 1)) | |
;; Big value empowers anything/recentf | |
(when (and (numberp recentf-max-saved-items) | |
(<= recentf-max-saved-items 20)) | |
(setq recentf-max-saved-items 500)))) | |
(candidates . recentf-list) | |
(match anything-c-match-on-file-name | |
anything-c-match-on-directory-name) | |
(action . (("Find file" . find-file) | |
("Find file as root" . anything-find-file-as-root) | |
("Find file(s)" . | |
(lambda (candidate) | |
(dolist (i (anything-marked-candidates)) | |
(find-file i)))))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment