From 7341b78abaa2db79271ea0e8a82120661448e251 Mon Sep 17 00:00:00 2001 From: Tomi Ollila Date: Sat, 29 Mar 2014 10:07:58 +0200 Subject: emacs: instruct user to autoload notmuch instead of require'ing it When (require 'notmuch) is added to ~/.emacs notmuch is loaded to every instance of emacs although it may not be used in majority of those instances. When (autoload 'notmuch "notmuch" ...) is added to ~/.emacs notmuch is loaded (only) when user invokes the notmuch function. User may want to add other entrypoints to notmuch by adding more autoloads -- the autoload instruction given should offer them clue how to do so. --- emacs/notmuch.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'emacs') diff --git a/emacs/notmuch.el b/emacs/notmuch.el index e93d8c85..e646aa5b 100644 --- a/emacs/notmuch.el +++ b/emacs/notmuch.el @@ -36,7 +36,7 @@ ;; ;; Then, to actually run it, add: ;; -;; (require 'notmuch) +;; (autoload 'notmuch "notmuch" "Notmuch mail" t) ;; ;; to your ~/.emacs file, and then run "M-x notmuch" from within emacs, ;; or run: -- cgit v1.2.3