summary refs log tree commit diff stats
path: root/tag-emacs/emacs.d/init.el
diff options
context:
space:
mode:
Diffstat (limited to 'tag-emacs/emacs.d/init.el')
-rw-r--r--tag-emacs/emacs.d/init.el16
1 files changed, 16 insertions, 0 deletions
diff --git a/tag-emacs/emacs.d/init.el b/tag-emacs/emacs.d/init.el
index e4ed9e3..3f2464f 100644
--- a/tag-emacs/emacs.d/init.el
+++ b/tag-emacs/emacs.d/init.el
@@ -942,6 +942,22 @@
             (eldoc-add-command 'paredit-backward-delete 'paredit-close-round 'autopair-insert-opening)
             (setq eldoc-idle-delay 0.1)))
 
+(defvar cedit-mode-map (make-sparse-keymap)
+  "Keymap for the cedit minor mode.")
+(req-package cedit
+  :diminish "{}"
+  :config (progn
+            (bind-key "C-M-b" #'cedit-beginning-of-statement cedit-mode-map)
+            (bind-key "C-M-f" #'cedit-end-of-statement cedit-mode-map)
+            (bind-key "C-M-d" #'cedit-down-block cedit-mode-map)
+            (bind-key "C-M-u" #'cedit-up-block-backward cedit-mode-map)
+            (bind-key "C-M-n" #'cedit-up-block-forward cedit-mode-map)
+            (bind-key "M-{" #'cedit-wrap-brace cedit-mode-map)
+            (bind-key "C-)" #'cedit-or-paredit-slurp cedit-mode-map)
+            (bind-key "C-}" #'cedit-or-paredit-barf cedit-mode-map)
+            (bind-key "M-<up>" #'cedit-or-paredit-splice-killing-backward cedit-mode-map)
+            (bind-key "M-r" #'cedit-or-paredit-raise cedit-mode-map)))
+
 (req-package paredit
   :diminish "()"
   :commands (paredit-mode)