Emacs: Move cedit mode into cedit :init block
Alan Pearce alan@alanpearce.co.uk
Sun, 27 Jul 2014 09:13:46 +0100
1 files changed, 8 insertions(+), 8 deletions(-)
jump to
M tag-emacs/emacs.d/init.el → tag-emacs/emacs.d/init.el
@@ -943,16 +943,16 @@ :config (progn (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)