aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Tomi Ollila <tomi.ollila@iki.fi>2014-03-29 10:07:58 +0200
committerGravatar David Bremner <david@tethera.net>2014-03-30 11:02:08 -0300
commit7341b78abaa2db79271ea0e8a82120661448e251 (patch)
treeb5ceeac24040fdbf63e5ec34bfec72c8ca263616
parentb3e7e7925efe573b7209cfd055dd881bdd2533ce (diff)
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.
-rw-r--r--README2
-rw-r--r--emacs/notmuch.el2
2 files changed, 2 insertions, 2 deletions
diff --git a/README b/README
index 3a003ad9..d92fcfdf 100644
--- a/README
+++ b/README
@@ -42,7 +42,7 @@ the libnotmuch library.
Notmuch installs a full-featured email interface for use within
emacs. To use this, first add the following line to your .emacs file:
- (require 'notmuch)
+ (autoload 'notmuch "notmuch" "Notmuch mail" t)
Then, either run "emacs -f notmuch" or execute the command "M-x
notmuch" from within a running 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: