projects
/
pelican-mode.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Provide an example `use-package’ declaration.
[pelican-mode.git]
/
README.md
diff --git
a/README.md
b/README.md
index
e29499d
..
8bbca6a
100644
(file)
--- a/
README.md
+++ b/
README.md
@@
-18,8
+18,19
@@
AsciiDoc, and Org. It also assumes you've set up Pelican with
To enable by default on all text files in a Pelican site:
To enable by default on all text files in a Pelican site:
- (require 'pelican-mode)
- (pelican-global-mode)
+``` emacs-lisp
+(require 'pelican-mode)
+(pelican-global-mode)
+```
+
+Or with `use-package` and deferred loading:
+
+``` emacs-lisp
+(use-package pelican-mode
+ :after (:any org rst markdown-mode adoc-mode)
+ :config
+ (pelican-global-mode))
+```
Or, register `pelican-mode` or `pelican-mode-enable-if-site`
as hook functions for more direct control.
Or, register `pelican-mode` or `pelican-mode-enable-if-site`
as hook functions for more direct control.