From 7d9de1e5e49f67ba95052c24c34d7a8a87342e13 Mon Sep 17 00:00:00 2001 From: JSDurand Date: Tue, 18 May 2021 15:32:41 +0800 Subject: Bind compile to C-c C-c. * c-conf.el (c-mode-map): I don't know why I didn't bind this earlier. --- c-conf.el | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v1.2.3-18-g5258