ui/nav-flash: refactor

+ Avoid generating unneeded markers (relatively expensive in the long
  run).
+ Extract excluded major modes into a variable.
This commit is contained in:
Henrik Lissner 2021-03-07 14:30:42 -05:00
parent ff58823d48
commit f0d601d2ac
2 changed files with 10 additions and 5 deletions

View file

@ -5,6 +5,10 @@
org-find-file org-find-file-at-mouse)
"A list of commands that should not trigger nav-flash.")
(defvar +nav-flash-exclude-modes
'(so-long-mode special-mode comint-mode term-mode vterm-mode)
"List of major modes where nav-flash won't automatically trigger.")
;;
;;; Packages