Remove expand-region package
It was unused, and is redundant with evil's text object expansion keys.
This commit is contained in:
parent
884957bdc6
commit
4fbf7a2687
3 changed files with 0 additions and 22 deletions
|
@ -269,17 +269,6 @@ savehist file."
|
|||
command-log-mode-is-global t))
|
||||
|
||||
|
||||
(def-package! expand-region
|
||||
:commands (er/contract-region er/mark-symbol er/mark-word)
|
||||
:config
|
||||
(defun doom*quit-expand-region ()
|
||||
"Properly abort an expand-region region."
|
||||
(when (memq last-command '(er/expand-region er/contract-region))
|
||||
(er/contract-region 0)))
|
||||
(advice-add #'evil-escape :before #'doom*quit-expand-region)
|
||||
(advice-add #'doom/escape :before #'doom*quit-expand-region))
|
||||
|
||||
|
||||
;; `helpful' --- a better *help* buffer
|
||||
(def-package! helpful
|
||||
:defer t
|
||||
|
|
|
@ -28,7 +28,6 @@
|
|||
(package! avy)
|
||||
(package! command-log-mode)
|
||||
(package! dtrt-indent)
|
||||
(package! expand-region)
|
||||
(package! helpful)
|
||||
(package! pcre2el)
|
||||
(package! smartparens)
|
||||
|
|
|
@ -2,10 +2,6 @@
|
|||
|
||||
;; This file defines a Spacemacs-esque keybinding scheme
|
||||
|
||||
;; expand-region's prompt can't tell what key contract-region is bound to, so we
|
||||
;; tell it explicitly.
|
||||
(setq expand-region-contract-fast-key "C-v")
|
||||
|
||||
;; Don't let evil-collection interfere with certain keys
|
||||
(setq evil-collection-key-blacklist
|
||||
(list "C-j" "C-k" "gd" "gf" "K" "[" "]" "gz"
|
||||
|
@ -65,12 +61,6 @@
|
|||
:i [remap newline] #'newline-and-indent ; auto-indent on newline
|
||||
:i "C-j" #'+default/newline ; default behavior
|
||||
|
||||
;; expand-region
|
||||
:v "v" (general-predicate-dispatch 'er/expand-region
|
||||
(eq (evil-visual-type) 'line)
|
||||
'evil-visual-char)
|
||||
:v "C-v" #'er/contract-region
|
||||
|
||||
(:after vc-annotate
|
||||
:map vc-annotate-mode-map
|
||||
[remap quit-window] #'kill-this-buffer)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue