From: Joe Wreschnig Date: Sat, 29 Mar 2014 17:08:05 +0000 (+0100) Subject: Change keybinding prefix from C-x p to C-c P. X-Git-Tag: v20170807~39 X-Git-Url: https://git.korewanetadesu.com/?p=pelican-mode.git;a=commitdiff_plain;h=f1fb8573ced9aaa3fe6b5ffb798435edf47a0b34 Change keybinding prefix from C-x p to C-c P. C-x to C-c avoids conflicts with a variety of global Emacs extensions. p to P avoids conflicts with Projectile. --- diff --git a/README.md b/README.md index 5a547c2..f3fce87 100644 --- a/README.md +++ b/README.md @@ -21,11 +21,11 @@ It also enforces some parts of my preferred Pelican configuration: ## Quick Guide -* `C-x p n` - Insert a post or page header -* `C-x p p` - Remove draft status from a post (i.e. publish it) -* `C-x p t` - Update the date field in a post/page header -* `C-x p h` - Generate HTML output for a site (equivalent to `make html`) -* `C-x p u` - Upload a site using rsync (equivalent to `make rsync_upload`) +* `C-x P n` - Insert a post or page header +* `C-x P p` - Remove draft status from a post (i.e. publish it) +* `C-x P t` - Update the date field in a post/page header +* `C-x P h` - Generate HTML output for a site (equivalent to `make html`) +* `C-x P u` - Upload a site using rsync (equivalent to `make rsync_upload`) ## Troubleshooting diff --git a/pelican-mode.el b/pelican-mode.el index ddc21ea..f6cc525 100644 --- a/pelican-mode.el +++ b/pelican-mode.el @@ -182,15 +182,15 @@ string or 't to use the current date and time." (defconst pelican-keymap (make-sparse-keymap) "The default keymap used in Pelican mode.") -(define-key pelican-keymap [?\C-x ?p ?n] +(define-key pelican-keymap (kbd "C-c P n") 'pelican-insert-header) -(define-key pelican-keymap [?\C-x ?p ?p] +(define-key pelican-keymap (kbd "C-c P p") 'pelican-publish-draft) -(define-key pelican-keymap [?\C-x ?p ?t] +(define-key pelican-keymap (kbd "C-c P t") 'pelican-update-date) -(define-key pelican-keymap [?\C-x ?p ?h] +(define-key pelican-keymap (kbd "C-c P h") 'pelican-make-html) -(define-key pelican-keymap [?\C-x ?p ?u] +(define-key pelican-keymap (kbd "C-c P u") 'pelican-make-rsync-upload) (define-minor-mode pelican-mode