From 2fea8b872607aad9ff58da05705d4a273a174d7d Mon Sep 17 00:00:00 2001 From: Mountain Man <43313373+MountainMan1312@users.noreply.github.com> Date: Wed, 24 May 2023 20:03:30 -0400 Subject: Add keybinds for commenting/uncommenting things --- init.el | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/init.el b/init.el index 332fc6f..756f428 100644 --- a/init.el +++ b/init.el @@ -1014,3 +1014,15 @@ ("C-h p" . helpful-at-point) ("C-h v" . helpful-variable) ("C-h x" . helpful-command))) + + +;; --------------------------------- +;; Comment / Uncomment region +;; -------------------------- +;; Comment / uncomment entire +;; regions instead of having to do +;; each line separately. +;; --------------------------------- + +(global-set-key (kbd "M-;") 'comment-line) +(global-set-key (kbd "C-M-;") 'comment-or-uncomment-region) -- cgit v1.2.3