diff options
Diffstat (limited to 'emacs/.emacs.d/init.el')
-rw-r--r-- | emacs/.emacs.d/init.el | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el index 4409af6..2151d66 100644 --- a/emacs/.emacs.d/init.el +++ b/emacs/.emacs.d/init.el @@ -398,6 +398,34 @@ MODE1 is enabled and vice-versa." (use-package apache-mode :ensure t :defer t) +;;; Show a “beacon” when cursor position changes +;; `beacon-mode' is a minor mode that shows a temporary gradient +;; whenever the cursor screen position changes in a (somewhat) +;; unpredictable way. For example, when you switch buffers, when the +;; window scrolls because you’ve reached the top of the window, etc. +(use-package beacon + :ensure t + :commands (beacon-mode) + :config + ;;; Don’t show a beacon everywhere + ;; Beacon by default already doesn’t show in certain buffers with + ;; certain major modes, currently only =magit-status-mode= disables + ;; the beacon. I have some more that I’d like to add. + (setq beacon-dont-blink-major-modes + (append beacon-dont-blink-major-modes + '(circe-channel-mode + circe-server-mode + magit-diff-mode + gnus-summary-mode + gnus-group-mode))) + ;;; Show a beacon when recentering + ;; Somehow I always get confused when I recenter my screen, is it in + ;; the center, top or bottom? Beacon disables itself for the + ;; recentering command, and I want it enabled, even though this is + ;; completely predictable. + (setq beacon-dont-blink-commands + (delq 'recenter-top-bottom beacon-dont-blink-commands))) + (use-package eap :load-path "vendor-lisp/eap" :commands (eap) @@ -740,6 +768,7 @@ MODE1 is enabled and vice-versa." (savehist-mode) (show-paren-mode) (winner-mode) +(beacon-mode) (help-at-pt-set-timer) (windmove-default-keybindings) |