Skip to content

Instantly share code, notes, and snippets.

@mori-dev
Created April 1, 2010 16:01
Show Gist options
  • Save mori-dev/351987 to your computer and use it in GitHub Desktop.
Save mori-dev/351987 to your computer and use it in GitHub Desktop.
(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