From c9994d8bda08e4a9f582c07808122a8362431370 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 27 Jul 2014 16:47:02 +0100 Subject: Emacs: Move cedit's c-mode hook to cedit init --- tag-emacs/emacs.d/init.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tag-emacs/emacs.d') diff --git a/tag-emacs/emacs.d/init.el b/tag-emacs/emacs.d/init.el index 58cc8cf..0ea80fb 100644 --- a/tag-emacs/emacs.d/init.el +++ b/tag-emacs/emacs.d/init.el @@ -730,8 +730,7 @@ (req-package cc-mode :defer t :init (progn - (add-hook 'c-mode-common-hook #'electric-indent-mode) - (add-hook 'c-mode-common-hook #'turn-on-cedit-mode)) + (add-hook 'c-mode-common-hook #'electric-indent-mode)) :config (progn (setq c-default-style '((java-mode . "java") (awk-mode . "awk") @@ -954,7 +953,8 @@ :lighter " Cedit") (defun turn-on-cedit-mode () (enable-paredit-mode) - (cedit-mode 1))) + (cedit-mode 1)) + (add-hook #'c-mode-common-hook #'turn-on-cedit-mode)) :config (progn (bind-key "M-a" #'cedit-beginning-of-statement cedit-mode-map) (bind-key "M-e" #'cedit-end-of-statement cedit-mode-map) -- cgit 1.4.1