From: Mark Wooding Date: Wed, 8 Oct 2008 11:56:24 +0000 (+0100) Subject: dot-emacs: Don't electrically indent on `*' or `/'. X-Git-Url: https://git.distorted.org.uk/~mdw/profile/commitdiff_plain/f06dee7a808657fb76221b5860d5907d65249ef5 dot-emacs: Don't electrically indent on `*' or `/'. This is really annoying on strangely indented lines when adding commentary. --- diff --git a/dot-emacs.el b/dot-emacs.el index e837272..fbb8e06 100644 --- a/dot-emacs.el +++ b/dot-emacs.el @@ -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)