X-Git-Url: https://git.korewanetadesu.com/?p=pelican-mode.git;a=blobdiff_plain;f=README.md;h=308094cf9a1db04644fa9906b5267c1bcf3ddcea;hp=e29499dc234944af92bcee2273bb4df3be97325d;hb=64d41f0ee5970b2d875880994eb287b97cad24a1;hpb=0eeee74fd9a459dd8c04c264c183d80f2d2b98b2 diff --git a/README.md b/README.md index e29499d..308094c 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 + :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