Change keybinding prefix from C-x p to C-c P.
authorJoe Wreschnig <joe.wreschnig@gmail.com>
Sat, 29 Mar 2014 17:08:05 +0000 (18:08 +0100)
committerJoe Wreschnig <joe.wreschnig@gmail.com>
Sat, 29 Mar 2014 17:08:05 +0000 (18:08 +0100)
C-x to C-c avoids conflicts with a variety of global Emacs extensions. p
to P avoids conflicts with Projectile.

README.md
pelican-mode.el

index 5a547c2..f3fce87 100644 (file)
--- a/README.md
+++ b/README.md
@@ -21,11 +21,11 @@ It also enforces some parts of my preferred Pelican configuration:
 
 ## Quick Guide
 
 
 ## 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
 
 
 ## Troubleshooting
 
index ddc21ea..f6cc525 100644 (file)
@@ -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.")
 
 (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)
   'pelican-insert-header)
-(define-key pelican-keymap [?\C-x ?p ?p]
+(define-key pelican-keymap (kbd "C-c P p")
   'pelican-publish-draft)
   'pelican-publish-draft)
-(define-key pelican-keymap [?\C-x ?p ?t]
+(define-key pelican-keymap (kbd "C-c P t")
   'pelican-update-date)
   'pelican-update-date)
-(define-key pelican-keymap [?\C-x ?p ?h]
+(define-key pelican-keymap (kbd "C-c P h")
   'pelican-make-html)
   '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
   'pelican-make-rsync-upload)
 
 (define-minor-mode pelican-mode