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://www.chiark.greenend.org.uk/ucgi/~mdw/git/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 @@ (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)