summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJSDurand <mmemmew@gmail.com>2021-05-18 15:32:41 +0800
committerJSDurand <mmemmew@gmail.com>2021-05-18 15:32:41 +0800
commit7d9de1e5e49f67ba95052c24c34d7a8a87342e13 (patch)
tree88e50956bfae691fde5033a36cde77db0e4afc89
parent887d4fa67f635f39005420425c421e4f31b14da4 (diff)
Bind compile to C-c C-c.
* c-conf.el (c-mode-map): I don't know why I didn't bind this earlier.
-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