mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Remove doom/toggle-comment-region-or-line
Replaced with simpler keybinds.
This commit is contained in:
@ -270,17 +270,6 @@ Respects `require-final-newline'."
|
|||||||
(when (looking-at "\n+")
|
(when (looking-at "\n+")
|
||||||
(replace-match "")))
|
(replace-match "")))
|
||||||
|
|
||||||
;;;###autoload
|
|
||||||
(defun doom/toggle-comment-region-or-line ()
|
|
||||||
"Comments or uncomments the whole region or if no region is
|
|
||||||
selected, then the current line."
|
|
||||||
(interactive)
|
|
||||||
(let (beg end)
|
|
||||||
(if (region-active-p)
|
|
||||||
(setq beg (region-beginning) end (region-end))
|
|
||||||
(setq beg (line-beginning-position) end (line-end-position)))
|
|
||||||
(comment-or-uncomment-region beg end)))
|
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun doom/dos2unix ()
|
(defun doom/dos2unix ()
|
||||||
"Convert the current buffer to a Unix file encoding."
|
"Convert the current buffer to a Unix file encoding."
|
||||||
|
@ -167,7 +167,9 @@
|
|||||||
"s--" #'text-scale-decrease
|
"s--" #'text-scale-decrease
|
||||||
;; Conventional text-editing keys & motions
|
;; Conventional text-editing keys & motions
|
||||||
"s-a" #'mark-whole-buffer
|
"s-a" #'mark-whole-buffer
|
||||||
"s-/" #'doom/toggle-comment-region-or-line
|
:g "s-/" (λ! (save-excursion (comment-line 1)))
|
||||||
|
:n "s-/" #'evil-commentary-line
|
||||||
|
:v "s-/" #'evil-commentary
|
||||||
:gni [s-return] #'+default/newline-below
|
:gni [s-return] #'+default/newline-below
|
||||||
:gni [s-S-return] #'+default/newline-above
|
:gni [s-S-return] #'+default/newline-above
|
||||||
:gi [s-backspace] #'doom/backward-kill-to-bol-and-indent
|
:gi [s-backspace] #'doom/backward-kill-to-bol-and-indent
|
||||||
|
Reference in New Issue
Block a user