all repos — nixfiles @ e88eb66d9a6789c550537fa1ceb51f956f2d3d65

System and user configuration, managed by nix and home-manager

Emacs: Enable paredit-mode with cedit-mode
Alan Pearce alan@alanpearce.co.uk
Sun, 27 Jul 2014 16:41:30 +0100
commit

e88eb66d9a6789c550537fa1ceb51f956f2d3d65

parent

435bc6797ea984d73ccde1a7c41fd4367db3d05f

1 files changed, 2 insertions(+), 0 deletions(-)

jump to
M tag-emacs/emacs.d/init.eltag-emacs/emacs.d/init.el
@@ -945,6 +945,7 @@ (setq eldoc-idle-delay 0.1))) 
 (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 @@ (define-minor-mode cedit-mode             "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)