diff options
author | Tom Willemse | 2016-07-03 01:34:50 +0200 |
---|---|---|
committer | Tom Willemse | 2016-07-03 01:34:50 +0200 |
commit | 3b55381ed60024838fd3273547b438d85d700640 (patch) | |
tree | b8dcd5bff8c8b531e7b65bc26ae10f6b65e499f2 /emacs/.emacs.d/init.el | |
parent | aedb8632ba0aca98c64d3a7bae93e5575b136451 (diff) | |
download | dotfiles-3b55381ed60024838fd3273547b438d85d700640.tar.gz dotfiles-3b55381ed60024838fd3273547b438d85d700640.zip |
Move beacon config to use-package
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) |