summary refs log tree commit diff stats
path: root/tag-emacs
diff options
context:
space:
mode:
authorAlan Pearce2014-07-27 09:13:46 +0100
committerAlan Pearce2014-07-27 09:13:46 +0100
commit0188037674cc96038af7d1c5167322b22e5470ab (patch)
treeda70213c91460ebc16f4cc140fb0c1c82ca0cf25 /tag-emacs
parent55cf5ba5579f50c6ab021daad8a9808deaf49ac5 (diff)
downloadnixfiles-0188037674cc96038af7d1c5167322b22e5470ab.tar.lz
nixfiles-0188037674cc96038af7d1c5167322b22e5470ab.tar.zst
nixfiles-0188037674cc96038af7d1c5167322b22e5470ab.zip
Emacs: Move cedit mode into cedit :init block
Diffstat (limited to 'tag-emacs')
-rw-r--r--tag-emacs/emacs.d/init.el16
1 files changed, 8 insertions, 8 deletions
diff --git a/tag-emacs/emacs.d/init.el b/tag-emacs/emacs.d/init.el
index 87a10253..de34b156 100644
--- a/tag-emacs/emacs.d/init.el
+++ b/tag-emacs/emacs.d/init.el
@@ -943,16 +943,16 @@
             (eldoc-add-command 'paredit-backward-delete 'paredit-close-round 'autopair-insert-opening)
             (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 "{}"
+  :init (progn
+          (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)))
   :config (progn
             (bind-key "C-M-b" #'cedit-beginning-of-statement cedit-mode-map)
             (bind-key "C-M-f" #'cedit-end-of-statement cedit-mode-map)