chiark
/
gitweb
/
~mdw
/
profile
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dot-emacs: Fix the C mode hacking.
[profile]
/
dot-emacs.el
diff --git
a/dot-emacs.el
b/dot-emacs.el
index fbb8e06b248f100582d56e53bd0be8d7c0010a08..0376bad55005e09a85b2db1d4a16c074e3ba4faf 100644
(file)
--- a/
dot-emacs.el
+++ b/
dot-emacs.el
@@
-726,8
+726,10
@@
(defun linux-c-mode ()
;; --- Make C indentation nice ---
;; --- 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"
(defun mdw-c-style ()
(c-add-style "[mdw] C and C++ style"