summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2014-07-27 16:41:30 +0100
committerAlan Pearce2014-07-27 16:42:41 +0100
commite88eb66d9a6789c550537fa1ceb51f956f2d3d65 (patch)
treea10c1dbe6649aedc2acb74a945fe5e4bdaa9142f
parent435bc6797ea984d73ccde1a7c41fd4367db3d05f (diff)
downloaddotfiles-e88eb66d9a6789c550537fa1ceb51f956f2d3d65.tar.lz
dotfiles-e88eb66d9a6789c550537fa1ceb51f956f2d3d65.tar.zst
dotfiles-e88eb66d9a6789c550537fa1ceb51f956f2d3d65.zip
Emacs: Enable paredit-mode with cedit-mode
-rw-r--r--tag-emacs/emacs.d/init.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/tag-emacs/emacs.d/init.el b/tag-emacs/emacs.d/init.el
index 6dfaa87..58cc8cf 100644
--- a/tag-emacs/emacs.d/init.el
+++ b/tag-emacs/emacs.d/init.el
@@ -945,6 +945,7 @@
 
 (req-package cedit
   :diminish "{}"
+  :require paredit
   :init (progn
           (defvar cedit-mode-map (make-sparse-keymap)
             "Keymap for the cedit minor mode.")
@@ -952,6 +953,7 @@
             "Minor mode for paredit-style editing in c-style modes."
             :lighter " Cedit")
           (defun turn-on-cedit-mode ()
+            (enable-paredit-mode)
             (cedit-mode 1)))
   :config (progn
             (bind-key "M-a" #'cedit-beginning-of-statement cedit-mode-map)