From e88eb66d9a6789c550537fa1ceb51f956f2d3d65 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 27 Jul 2014 16:41:30 +0100 Subject: Emacs: Enable paredit-mode with cedit-mode --- tag-emacs/emacs.d/init.el | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tag-emacs/emacs.d/init.el') diff --git a/tag-emacs/emacs.d/init.el b/tag-emacs/emacs.d/init.el index 6dfaa87a..58cc8cf5 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) -- cgit 1.4.1