chiark
/
gitweb
/
~mdw
/
profile
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2ded949
)
dot-emacs: Don't electrically indent on `*' or `/'.
author
Mark Wooding
<mdw@distorted.org.uk>
Wed, 8 Oct 2008 11:56:24 +0000
(12:56 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Wed, 8 Oct 2008 11:56:24 +0000
(12:56 +0100)
This is really annoying on strangely indented lines when adding
commentary.
dot-emacs.el
patch
|
blob
|
blame
|
history
diff --git
a/dot-emacs.el
b/dot-emacs.el
index e8372726a20e1dee485a061e5c94ea26dbad70d1..fbb8e06b248f100582d56e53bd0be8d7c0010a08 100644
(file)
--- a/
dot-emacs.el
+++ b/
dot-emacs.el
@@
-726,6
+726,9
@@
(defun linux-c-mode ()
;; --- Make C indentation nice ---
+(define-key c-mode-map "*" nil)
+(define-key c-mode-map "/" nil)
+
(defun mdw-c-style ()
(c-add-style "[mdw] C and C++ style"
'((c-basic-offset . 2)