Remove doom/toggle-comment-region-or-line

Replaced with simpler keybinds.
This commit is contained in:
Henrik Lissner 2019-02-21 17:46:18 -05:00
parent e56a9580d7
commit afae6e4f1d
No known key found for this signature in database
GPG Key ID: 5F6C0EA160557395
2 changed files with 3 additions and 12 deletions

View File

@ -270,17 +270,6 @@ Respects `require-final-newline'."
(when (looking-at "\n+")
(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
(defun doom/dos2unix ()
"Convert the current buffer to a Unix file encoding."

View File

@ -167,7 +167,9 @@
"s--" #'text-scale-decrease
;; Conventional text-editing keys & motions
"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-S-return] #'+default/newline-above
:gi [s-backspace] #'doom/backward-kill-to-bol-and-indent