ui/doom: replace beacon with nav-flash
This commit is contained in:
parent
a04a9a6bb4
commit
9a40ca4916
2 changed files with 20 additions and 14 deletions
|
@ -85,19 +85,25 @@
|
||||||
(require 'doom-nlinum))
|
(require 'doom-nlinum))
|
||||||
|
|
||||||
|
|
||||||
;; Causes a flash around the cursor when it moves across a "large" distance.
|
;; Flashes the line around the cursor after any motion command that might
|
||||||
;; Usually between windows, or across files. This makes it easier to keep track
|
;; reasonably send the cursor somewhere the eyes can't follow. Tremendously
|
||||||
;; where your cursor is, which I find helpful on my 30" 2560x1600 display.
|
;; helpful on a 30" 2560x1600 display.
|
||||||
(def-package! beacon
|
(def-package! nav-flash
|
||||||
:after doom-themes
|
:commands nav-flash-show
|
||||||
:config
|
:init
|
||||||
(beacon-mode +1)
|
(defun doom/blink-cursor (&rest _)
|
||||||
(setq beacon-color (let ((bg (face-attribute 'highlight :background nil t)))
|
"Blink line, to keep track of the cursor."
|
||||||
(if (eq bg 'unspecified)
|
(interactive)
|
||||||
(face-attribute 'highlight :foreground nil t)
|
(nav-flash-show))
|
||||||
bg))
|
|
||||||
beacon-blink-when-buffer-changes t
|
(add-hook! :append
|
||||||
beacon-blink-when-point-moves-vertically 10))
|
'(imenu-after-jump-hook focus-in-hook evil-jumps-post-jump-hook find-file-hook)
|
||||||
|
'doom/blink-cursor)
|
||||||
|
|
||||||
|
(after! evil
|
||||||
|
(advice-add 'evil-window-bottom :after 'doom/blink-cursor)
|
||||||
|
(advice-add 'evil-window-middle :after 'doom/blink-cursor)
|
||||||
|
(advice-add 'evil-window-top :after 'doom/blink-cursor)))
|
||||||
|
|
||||||
|
|
||||||
(after! hideshow
|
(after! hideshow
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
;; -*- no-byte-compile: t; -*-
|
;; -*- no-byte-compile: t; -*-
|
||||||
;;; ui/doom/packages.el
|
;;; ui/doom/packages.el
|
||||||
|
|
||||||
(package! beacon)
|
|
||||||
(package! doom-themes)
|
(package! doom-themes)
|
||||||
|
(package! nav-flash)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue