From 958996bbcc3d9eb9538c34689536c11b075f8bcb Mon Sep 17 00:00:00 2001 From: rubikitch Date: Mon, 26 Apr 2010 06:56:28 +0900 Subject: [PATCH] Offer default `anything-sources' for newbies --- anything-config.el | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/anything-config.el b/anything-config.el index b85f7af..8d17ac6 100644 --- a/anything-config.el +++ b/anything-config.el @@ -5859,7 +5859,7 @@ Return nil if bmk is not a valid bookmark." ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Setup ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;;; Type Attributes +;;;; Type Attributes (define-anything-type-attribute 'buffer `((action ,@(if pop-up-frames @@ -6011,6 +6011,14 @@ the center of window, otherwise at the top of window. (action ("Cancel Timer" . cancel-timer))) "Timer.") +;;;; Default `anything-sources' +;; Setting `anything-sources' is DEPRECATED, but it seems that newbies +;; tend to invoke M-x anything directly. So I offer default setting. +(setq anything-sources + '(anything-c-source-buffers+ + anything-c-source-recentf + anything-c-source-files-in-current-dir+)) + ;;;; unit test ;; (install-elisp "http://www.emacswiki.org/cgi-bin/wiki/download/el-expectations.el") ;; (install-elisp "http://www.emacswiki.org/cgi-bin/wiki/download/el-mock.el") -- 2.11.4.GIT