From: Mark Wooding Date: Wed, 8 Oct 2008 12:31:02 +0000 (+0100) Subject: dot-emacs: Fix the C mode hacking. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/profile/commitdiff_plain/c14d77930a7a09295b24c5145c6bc304c1fb971d?ds=inline dot-emacs: Fix the C mode hacking. Don't clobber the C mode map until the C mode is actually loaded! --- diff --git a/dot-emacs.el b/dot-emacs.el index fbb8e06..0376bad 100644 --- a/dot-emacs.el +++ b/dot-emacs.el @@ -726,8 +726,10 @@ (defun linux-c-mode () ;; --- Make C indentation nice --- -(define-key c-mode-map "*" nil) -(define-key c-mode-map "/" nil) +(eval-after-load "cc-mode" + '(progn + (define-key c-mode-map "*" nil) + (define-key c-mode-map "/" nil))) (defun mdw-c-style () (c-add-style "[mdw] C and C++ style"