Skip to content

Instantly share code, notes, and snippets.

@tmaeda
Created March 29, 2011 09:29
Show Gist options
  • Save tmaeda/892080 to your computer and use it in GitHub Desktop.
Save tmaeda/892080 to your computer and use it in GitHub Desktop.
anything-filelist+ に anything-c-source-mac-spotlight を追加して使ってみることにした
(require 'anything-startup)
(defun my-anything-filelist+ ()
"Preconfigured `anything' to open files/buffers/bookmarks instantly.
This is a replacement for `anything-for-files'."
(interactive)
(anything-other-buffer
'(anything-c-source-ffap-line
anything-c-source-ffap-guesser
anything-c-source-buffers+
anything-c-source-recentf
anything-c-source-bookmarks
anything-c-source-file-cache
anything-c-source-filelist
anything-c-source-mac-spotlight
)
"*anything file list*"))
(require 'recentf-ext)
(setq anything-c-filelist-file-name "/Users/tmaeda/tmp/all.filelist")
(setq anything-grep-candidates-fast-directory-regexp "^/tmp")
;;;;;;;;;;;;;;;;;;;;
;; anything-kill-ring
(defun anything-kill-ring ()
(interactive)
(anything 'anything-c-source-kill-ring nil nil nil nil "*anything kill ring*"))
(global-set-key (kbd "M-y") 'anything-kill-ring)
(global-set-key (kbd "C-;") 'my-anything-filelist+)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment