summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--c-conf.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/c-conf.el b/c-conf.el
index 5c9925b..2ba0286 100644
--- a/c-conf.el
+++ b/c-conf.el
@@ -26,6 +26,9 @@
(setq c-macro-preprocessor "gcc -E -C -o - -")
+;; We can achieve the functionality of the original binding
+;; comment-region by comment-dwim bound to "M-;".
+(define-key c-mode-map (vector 3 3) #'compile)
(provide 'c-conf)
;;; c-conf.el ends here