Smarter blink-matching-paren

This commit is contained in:
Henrik Lissner 2015-10-08 01:46:19 -04:00
parent 50d6de0600
commit 67b6c41af7
2 changed files with 4 additions and 1 deletions

View file

@ -8,7 +8,9 @@
(add-hook! evil-normal-state-exit (setq show-paren-delay 0)) (add-hook! evil-normal-state-exit (setq show-paren-delay 0))
;; Disable highlights on insert-mode ;; Disable highlights on insert-mode
(add-hook! evil-insert-state-entry 'evil-ex-nohighlight) (add-hook! evil-insert-state-entry 'evil-ex-nohighlight)
(add-hook! undo-tree-mode (diminish 'undo-tree-mode)) ;; Prevents "matches )" messages in minibuffer
(add-hook! evil-insert-state-entry (setq-default blink-matching-paren t))
(add-hook! evil-insert-state-exit (setq-default blink-matching-paren nil))
;; Always ensure evil-shift-width is consistent with tab-width ;; Always ensure evil-shift-width is consistent with tab-width
(add-hook! evil-local-mode (setq evil-shift-width tab-width)) (add-hook! evil-local-mode (setq evil-shift-width tab-width))
:config :config

View file

@ -18,6 +18,7 @@
(size-indication-mode -1) (size-indication-mode -1)
(setq-default (setq-default
blink-matching-paren nil
line-spacing 1 line-spacing 1
;; Multiple cursors across buffers cause a strange redraw delay for ;; Multiple cursors across buffers cause a strange redraw delay for
;; some things, like auto-complete or evil-mode's cursor color ;; some things, like auto-complete or evil-mode's cursor color