Simplify "lst:flash-line-around-point"
This commit is contained in:
parent
9722833400
commit
cbfab437b1
@ -5968,10 +5968,6 @@ point movements visually.
|
||||
#+caption: Implement =flash-line-around-point=.
|
||||
#+name: lst:flash-line-around-point
|
||||
#+begin_src emacs-lisp -n :results silent
|
||||
;; Ensure loading `pulse' with the dynamic variables `pulse-delay' and
|
||||
;; `pulse-iterations' before masking them lexically instead of after
|
||||
;; to prevent the warning triggered by lazy loading.
|
||||
(when (require 'pulse nil 'noerror)
|
||||
;; https://karthinks.com/software/batteries-included-with-emacs/
|
||||
;; https://github.com/karthink/.emacs.d/blob/master/init.el#L2077
|
||||
(defun flash-line-around-point (&rest _)
|
||||
@ -5984,7 +5980,7 @@ point movements visually.
|
||||
scroll-down-command
|
||||
recenter-top-bottom
|
||||
other-window))
|
||||
(advice-add command :after #'flash-line-around-point)))
|
||||
(advice-add command :after #'flash-line-around-point))
|
||||
#+end_src
|
||||
|
||||
* Applications
|
||||
|
Loading…
Reference in New Issue
Block a user