mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-21 18:38:08 +01:00
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.
This commit is contained in:
parent
b3e7e7925e
commit
7341b78aba
2 changed files with 2 additions and 2 deletions
2
README
2
README
|
@ -42,7 +42,7 @@ the libnotmuch library.
|
||||||
Notmuch installs a full-featured email interface for use within
|
Notmuch installs a full-featured email interface for use within
|
||||||
emacs. To use this, first add the following line to your .emacs file:
|
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
|
Then, either run "emacs -f notmuch" or execute the command "M-x
|
||||||
notmuch" from within a running emacs.
|
notmuch" from within a running emacs.
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
;;
|
;;
|
||||||
;; Then, to actually run it, add:
|
;; 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,
|
;; to your ~/.emacs file, and then run "M-x notmuch" from within emacs,
|
||||||
;; or run:
|
;; or run:
|
||||||
|
|
Loading…
Reference in a new issue