dot-emacs: Don't electrically indent on `*' or `/'.
authorMark Wooding <mdw@distorted.org.uk>
Wed, 8 Oct 2008 11:56:24 +0000 (12:56 +0100)
committerMark 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

index e837272..fbb8e06 100644 (file)
@@ -726,6 +726,9 @@ the regular expressions in `mdw-backup-disable-regexps'."
 
 ;; --- 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)