Move evil-mc personal config to private module
This commit is contained in:
parent
b7b9a2c2fd
commit
a5325f6a2a
2 changed files with 8 additions and 6 deletions
|
@ -307,12 +307,6 @@ the new algorithm is confusing, like in python or ruby."
|
|||
doom/backward-kill-to-bol-and-indent doom/newline-and-indent))
|
||||
(push (cons fn '((:default . evil-mc-execute-default-call))) evil-mc-custom-known-commands))
|
||||
|
||||
;; if I'm in insert mode, chances are I want cursors to resume
|
||||
(add-hook! 'evil-mc-before-cursors-created
|
||||
(add-hook 'evil-insert-state-entry-hook #'evil-mc-resume-cursors nil t))
|
||||
(add-hook! 'evil-mc-after-cursors-deleted
|
||||
(remove-hook 'evil-insert-state-entry-hook #'evil-mc-resume-cursors t))
|
||||
|
||||
(defun +evil|escape-multiple-cursors ()
|
||||
"Clear evil-mc cursors and restore state."
|
||||
(when (evil-mc-has-cursors-p)
|
||||
|
|
|
@ -20,6 +20,14 @@
|
|||
(advice-add #'tramp-read-passwd :around #'+hlissner*no-authinfo-for-tramp)
|
||||
|
||||
|
||||
(after! evil-mc
|
||||
;; if I'm in insert mode, chances are I want cursors to resume
|
||||
(add-hook! 'evil-mc-before-cursors-created
|
||||
(add-hook 'evil-insert-state-entry-hook #'evil-mc-resume-cursors nil t))
|
||||
(add-hook! 'evil-mc-after-cursors-deleted
|
||||
(remove-hook 'evil-insert-state-entry-hook #'evil-mc-resume-cursors t)))
|
||||
|
||||
|
||||
;; Don't use default snippets, use mine.
|
||||
(after! yasnippet
|
||||
(setq yas-snippet-dirs (append (list '+hlissner-snippets-dir)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue