about summary refs log tree commit diff
path: root/emacs.d
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2018-07-17T19·29-0400
committerWilliam Carroll <wpcarro@gmail.com>2018-07-19T16·00-0400
commit88d75b97710bb2719008a279e08dd5cf89d0a9f5 (patch)
treeabac030662c9b6be711a77b3f045d4edcfcec5f5 /emacs.d
parenta99939657b47f2a2fb5f7f32362ff7167a590747 (diff)
Remap KBDs for Paredit
I wasn't using the previous KBDs, which were modelled after Vim's answer
for Paredit KBDs.

Some of the mappings bothered me, so I needed that made more sense to
me.
Diffstat (limited to 'emacs.d')
-rw-r--r--emacs.d/wpc/packages/wpc-lisp.el26
1 files changed, 17 insertions, 9 deletions
diff --git a/emacs.d/wpc/packages/wpc-lisp.el b/emacs.d/wpc/packages/wpc-lisp.el
index 487201d47625..c15c4526c2ee 100644
--- a/emacs.d/wpc/packages/wpc-lisp.el
+++ b/emacs.d/wpc/packages/wpc-lisp.el
@@ -17,20 +17,28 @@
   'emacs-lisp-mode
   'ielm-mode)
 
+;; Here is some of the thinking behind some of the keybindings:
+;;
+;; slurp    s
+;; barf     S
+;; forward  )
+;; backward (
+;;
+;; Known concession: s and S eclipse Vim bindings. There is a precedent already
+;; for eclipsing the s binding for window splitting. Shift-s feel appropriate
+;; for barfing, since eclisping the b KBD feels less acceptable than eclisping
+;; the s KBD.
+
 ;; paredit LISP editing
 (use-package paredit
   :general
   (general-unbind paredit-mode-map "C-j" "M-q")
   (n paredit-mode-map
-     ">)" 'paredit-forward-slurp-sexp
-     "<(" 'paredit-backward-slurp-sexp
-     "<)" 'paredit-forward-barf-sexp
-     ">(" 'paredit-backward-barf-sexp
-     ">e" 'paredit-move-forward
-     "<e" 'paredit-move-backward
-     ">f" 'paredit-move-backward
-     "<f" 'paredit-move-backward
-     "go" 'paredit-raise-sexp)
+     "s)" 'paredit-forward-slurp-sexp
+     "s(" 'paredit-backward-slurp-sexp
+     "S)" 'paredit-forward-barf-sexp
+     "S(" 'paredit-backward-barf-sexp
+     "gr" 'paredit-raise-sexp)
   :ghook (wpc/lisp-mode-hooks #'enable-paredit-mode))
 
 (provide 'wpc-lisp)