Minor general refactor
This commit is contained in:
parent
e44f5d0457
commit
8f00b3d07a
3 changed files with 8 additions and 5 deletions
|
@ -208,6 +208,7 @@ fundamental-mode) for performance sake."
|
||||||
(setq undo-tree-auto-save-history t
|
(setq undo-tree-auto-save-history t
|
||||||
undo-tree-history-directory-alist
|
undo-tree-history-directory-alist
|
||||||
(list (cons "." (concat doom-cache-dir "undo-tree-hist/"))))
|
(list (cons "." (concat doom-cache-dir "undo-tree-hist/"))))
|
||||||
|
|
||||||
(defun doom*silence-undo-tree-load (orig-fn &rest args)
|
(defun doom*silence-undo-tree-load (orig-fn &rest args)
|
||||||
"Silence undo-tree load errors."
|
"Silence undo-tree load errors."
|
||||||
(quiet! (apply orig-fn args)))
|
(quiet! (apply orig-fn args)))
|
||||||
|
|
|
@ -241,7 +241,7 @@ across windows."
|
||||||
(add-hook 'doom-post-init-hook #'evil-escape-mode)
|
(add-hook 'doom-post-init-hook #'evil-escape-mode)
|
||||||
:config
|
:config
|
||||||
;; no `evil-escape' in minibuffer
|
;; no `evil-escape' in minibuffer
|
||||||
(cl-pushnew #'minibufferp evil-escape-inhibit-functions)
|
(cl-pushnew #'minibufferp evil-escape-inhibit-functions :test #'eq)
|
||||||
(map! :irvo "C-g" #'evil-escape))
|
(map! :irvo "C-g" #'evil-escape))
|
||||||
|
|
||||||
|
|
||||||
|
@ -304,7 +304,8 @@ the new algorithm is confusing, like in python or ruby."
|
||||||
(dolist (fn '(doom/deflate-space-maybe doom/inflate-space-maybe
|
(dolist (fn '(doom/deflate-space-maybe doom/inflate-space-maybe
|
||||||
doom/backward-to-bol-or-indent doom/forward-to-last-non-comment-or-eol
|
doom/backward-to-bol-or-indent doom/forward-to-last-non-comment-or-eol
|
||||||
doom/backward-kill-to-bol-and-indent doom/newline-and-indent))
|
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))
|
(push (cons fn '((:default . evil-mc-execute-default-call)))
|
||||||
|
evil-mc-custom-known-commands))
|
||||||
|
|
||||||
(defun +evil|escape-multiple-cursors ()
|
(defun +evil|escape-multiple-cursors ()
|
||||||
"Clear evil-mc cursors and restore state."
|
"Clear evil-mc cursors and restore state."
|
||||||
|
@ -318,7 +319,8 @@ the new algorithm is confusing, like in python or ruby."
|
||||||
(push 'evil-escape-mode evil-mc-incompatible-minor-modes))
|
(push 'evil-escape-mode evil-mc-incompatible-minor-modes))
|
||||||
|
|
||||||
|
|
||||||
(def-package! evil-snipe :demand t
|
(def-package! evil-snipe
|
||||||
|
:demand t
|
||||||
:init
|
:init
|
||||||
(setq evil-snipe-smart-case t
|
(setq evil-snipe-smart-case t
|
||||||
evil-snipe-scope 'line
|
evil-snipe-scope 'line
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
(add-hook! 'js2-mode-hook
|
(add-hook! 'js2-mode-hook
|
||||||
#'(flycheck-mode highlight-indentation-mode rainbow-delimiters-mode))
|
#'(flycheck-mode highlight-indentation-mode rainbow-delimiters-mode))
|
||||||
|
|
||||||
(set! :repl 'js2-mode '+javascript/repl)
|
(set! :repl 'js2-mode #'+javascript/repl)
|
||||||
(set! :electric 'js2-mode :chars '(?\} ?\) ?.))
|
(set! :electric 'js2-mode :chars '(?\} ?\) ?.))
|
||||||
(set! :jump 'js2-mode :xref-backend #'xref-js2-xref-backend)
|
(set! :jump 'js2-mode :xref-backend #'xref-js2-xref-backend)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue