diff options
| author | Mountain Man <43313373+MountainMan1312@users.noreply.github.com> | 2023-05-24 20:03:30 -0400 |
|---|---|---|
| committer | Mountain Man <43313373+MountainMan1312@users.noreply.github.com> | 2023-05-24 20:03:30 -0400 |
| commit | 2fea8b872607aad9ff58da05705d4a273a174d7d (patch) | |
| tree | 782f6485e7606f2d2f67264179ac1d1133115fff | |
| parent | Add filename to search when using `org-roam-node-find` (diff) | |
| download | mmosmacs-2fea8b872607aad9ff58da05705d4a273a174d7d.tar.gz mmosmacs-2fea8b872607aad9ff58da05705d4a273a174d7d.tar.bz2 mmosmacs-2fea8b872607aad9ff58da05705d4a273a174d7d.zip | |
Add keybinds for commenting/uncommenting things
| -rw-r--r-- | init.el | 12 |
1 files changed, 12 insertions, 0 deletions
| @@ -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) | ||