summary refs log tree commit diff stats
path: root/tag-emacs
diff options
context:
space:
mode:
authorAlan Pearce2014-07-26 22:14:58 +0100
committerAlan Pearce2014-07-26 22:14:58 +0100
commit866a5c2f8bd10b8284d16fb8853078906a0fa5c0 (patch)
treec87a75a3406853da752d820ef1e3197e8f7f5892 /tag-emacs
parent1438a338da1177242ca0cb4cc80dbe7edd3cc034 (diff)
downloaddotfiles-866a5c2f8bd10b8284d16fb8853078906a0fa5c0.tar.lz
dotfiles-866a5c2f8bd10b8284d16fb8853078906a0fa5c0.tar.zst
dotfiles-866a5c2f8bd10b8284d16fb8853078906a0fa5c0.zip
Emacs: Define minor mode for cedit
Diffstat (limited to 'tag-emacs')
-rw-r--r--tag-emacs/emacs.d/init.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/tag-emacs/emacs.d/init.el b/tag-emacs/emacs.d/init.el
index 3f2464f..0e8b849 100644
--- a/tag-emacs/emacs.d/init.el
+++ b/tag-emacs/emacs.d/init.el
@@ -944,6 +944,12 @@
 
 (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