Emacs: Enable paredit-mode with cedit-mode
Alan Pearce alan@alanpearce.co.uk
Sun, 27 Jul 2014 16:41:30 +0100
1 files changed, 2 insertions(+), 0 deletions(-)
jump to
M tag-emacs/emacs.d/init.el → tag-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)