From 33d58a69f99f9b528a20108c5b4af4f8c68bf4b6 Mon Sep 17 00:00:00 2001 From: Linus Arver Date: Wed, 12 Nov 2014 21:17:22 -0800 Subject: doc: ledger-mode: load lazily If we use `(load "ledger-mode")`, we always load ledger-mode, even if we are not editing a Ledger file; using `autoload`, we avoid this and only load ledger-mode when we need it. --- doc/ledger-mode.texi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/ledger-mode.texi b/doc/ledger-mode.texi index 17ec0e78..c8c4d1f6 100644 --- a/doc/ledger-mode.texi +++ b/doc/ledger-mode.texi @@ -119,9 +119,9 @@ initialization file (@file{~/.emacs}, @file{~/.emacs.d/init.el}, or @file{~/.Aquamacs/Preferences.el}). @lisp +(autoload 'ledger-mode "ledger-mode" "A major mode for Ledger" t) (add-to-list 'load-path (expand-file-name "/path/to/ledger/source/lisp/")) -(load "ledger-mode") (add-to-list 'auto-mode-alist '("\\.ledger$" . ledger-mode)) @end lisp -- cgit v1.2.3