~mdw
/
profile
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2784722
)
dot-emacs: Fix the C mode hacking.
author
Mark Wooding
<mdw@distorted.org.uk>
Wed, 8 Oct 2008 12:31:02 +0000
(13:31 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Wed, 8 Oct 2008 12:31:02 +0000
(13:31 +0100)
Don't clobber the C mode map until the C mode is actually loaded!
dot-emacs.el
patch
|
blob
|
blame
|
history
diff --git
a/dot-emacs.el
b/dot-emacs.el
index
fbb8e06
..
0376bad
100644
(file)
--- a/
dot-emacs.el
+++ b/
dot-emacs.el
@@
-726,8
+726,10
@@
the regular expressions in `mdw-backup-disable-regexps'."
;; --- 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"