X-Git-Url: https://git.korewanetadesu.com/?p=pelican-mode.git;a=blobdiff_plain;f=README.md;h=65c21d4a86b4b064a79a4976aec8c1df782d0ec2;hp=e29499dc234944af92bcee2273bb4df3be97325d;hb=209ad24318e1f28675da430aa10ef3467694b9ac;hpb=0eeee74fd9a459dd8c04c264c183d80f2d2b98b2 diff --git a/README.md b/README.md index e29499d..65c21d4 100644 --- a/README.md +++ b/README.md @@ -18,18 +18,30 @@ AsciiDoc, and Org. It also assumes you've set up Pelican with 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 + :demand :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. -* `C-c P d` - Update the document’s date -* `C-c P f` - Set a metadata field (title, category, etc.) -* `C-c P h` - Generate HTML output for a site (equivalent to `make html`) -* `C-c P n` - Insert a post or page header -* `C-c P p` - Remove draft status from a post (i.e. publish it) -* `C-c P u` - Upload a site using rsync (equivalent to `make rsync_upload`) +* `C-c = d` - Update the document’s date +* `C-c = f` - Set a metadata field (title, category, etc.) +* `C-c = h` - Generate HTML output for a site (equivalent to `make html`) +* `C-c = n` - Insert a post or page header +* `C-c = p` - Remove draft status from a post (i.e. publish it) +* `C-c = u` - Upload a site using rsync (equivalent to `make rsync_upload`) ## Troubleshooting