From f06dee7a808657fb76221b5860d5907d65249ef5 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Wed, 8 Oct 2008 12:56:24 +0100 Subject: [PATCH] dot-emacs: Don't electrically indent on `*' or `/'. This is really annoying on strangely indented lines when adding commentary. --- dot-emacs.el | 3 +++ 1 file changed, 3 insertions(+) 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) -- 2.11.0