diff options
-rw-r--r-- | tag-emacs/emacs.d/init.el | 6 |
1 files changed, 3 insertions, 3 deletions
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) |