Remove expand-region package

It was unused, and is redundant with evil's text object expansion keys.
This commit is contained in:
Henrik Lissner 2019-03-06 03:18:02 -05:00
parent 884957bdc6
commit 4fbf7a2687
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
3 changed files with 0 additions and 22 deletions

View file

@ -269,17 +269,6 @@ savehist file."
command-log-mode-is-global t)) 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 ;; `helpful' --- a better *help* buffer
(def-package! helpful (def-package! helpful
:defer t :defer t

View file

@ -28,7 +28,6 @@
(package! avy) (package! avy)
(package! command-log-mode) (package! command-log-mode)
(package! dtrt-indent) (package! dtrt-indent)
(package! expand-region)
(package! helpful) (package! helpful)
(package! pcre2el) (package! pcre2el)
(package! smartparens) (package! smartparens)

View file

@ -2,10 +2,6 @@
;; This file defines a Spacemacs-esque keybinding scheme ;; 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 ;; Don't let evil-collection interfere with certain keys
(setq evil-collection-key-blacklist (setq evil-collection-key-blacklist
(list "C-j" "C-k" "gd" "gf" "K" "[" "]" "gz" (list "C-j" "C-k" "gd" "gf" "K" "[" "]" "gz"
@ -65,12 +61,6 @@
:i [remap newline] #'newline-and-indent ; auto-indent on newline :i [remap newline] #'newline-and-indent ; auto-indent on newline
:i "C-j" #'+default/newline ; default behavior :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 (:after vc-annotate
:map vc-annotate-mode-map :map vc-annotate-mode-map
[remap quit-window] #'kill-this-buffer) [remap quit-window] #'kill-this-buffer)