all repos — archive/dotfiles @ 866a5c2f8bd10b8284d16fb8853078906a0fa5c0

Superseded by nixfiles

Emacs: Define minor mode for cedit
Alan Pearce alan@alanpearce.co.uk
Sat, 26 Jul 2014 22:14:58 +0100
commit

866a5c2f8bd10b8284d16fb8853078906a0fa5c0

parent

1438a338da1177242ca0cb4cc80dbe7edd3cc034

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

jump to
M tag-emacs/emacs.d/init.eltag-emacs/emacs.d/init.el
@@ -944,6 +944,12 @@ (setq eldoc-idle-delay 0.1))) 
 (defvar cedit-mode-map (make-sparse-keymap)
   "Keymap for the cedit minor mode.")
+(define-minor-mode cedit-mode
+  "Minor mode for paredit-style editing in c-style modes."
+  :lighter " Cedit")
+(defun turn-on-cedit-mode ()
+  (cedit-mode 1))
+
 (req-package cedit
   :diminish "{}"
   :config (progn