aboutsummaryrefslogtreecommitdiff
path: root/init.el
diff options
context:
space:
mode:
authorMountain Man <43313373+MountainMan1312@users.noreply.github.com>2023-05-24 20:03:30 -0400
committerMountain Man <43313373+MountainMan1312@users.noreply.github.com>2023-05-24 20:03:30 -0400
commit2fea8b872607aad9ff58da05705d4a273a174d7d (patch)
tree782f6485e7606f2d2f67264179ac1d1133115fff /init.el
parentAdd filename to search when using `org-roam-node-find` (diff)
downloadmmosmacs-2fea8b872607aad9ff58da05705d4a273a174d7d.tar.gz
mmosmacs-2fea8b872607aad9ff58da05705d4a273a174d7d.tar.bz2
mmosmacs-2fea8b872607aad9ff58da05705d4a273a174d7d.zip
Add keybinds for commenting/uncommenting things
Diffstat (limited to 'init.el')
-rw-r--r--init.el12
1 files changed, 12 insertions, 0 deletions
diff --git a/init.el b/init.el
index 332fc6f..756f428 100644
--- a/init.el
+++ b/init.el
@@ -1014,3 +1014,15 @@
1014 ("C-h p" . helpful-at-point) 1014 ("C-h p" . helpful-at-point)
1015 ("C-h v" . helpful-variable) 1015 ("C-h v" . helpful-variable)
1016 ("C-h x" . helpful-command))) 1016 ("C-h x" . helpful-command)))
1017
1018
1019;; ---------------------------------
1020;; Comment / Uncomment region
1021;; --------------------------
1022;; Comment / uncomment entire
1023;; regions instead of having to do
1024;; each line separately.
1025;; ---------------------------------
1026
1027(global-set-key (kbd "M-;") 'comment-line)
1028(global-set-key (kbd "C-M-;") 'comment-or-uncomment-region)