From 9eddaf6b8116cc780805cc2a5123434caa5dff51 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sat, 27 Feb 2021 17:28:16 -0800 Subject: Disable Beacon for Eshell scrolling --- oni-eshell.el | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'oni-eshell.el') diff --git a/oni-eshell.el b/oni-eshell.el index 16585db..b49a375 100644 --- a/oni-eshell.el +++ b/oni-eshell.el @@ -4,7 +4,7 @@ ;; Author: Tom Willemse ;; Keywords: local -;; Version: 2020.1210.213125 +;; Version: 2021.0227.172750 ;; Package-Requires: (eshell-fringe-status esh-autosuggest xterm-color eshell-syntax-highlighting) ;; This program is free software; you can redistribute it and/or modify @@ -99,11 +99,16 @@ new-path (concat "/" new-path)))) +(defun oni-eshell-disable-beacon-on-scroll () + "Disable ‘beacon-blink-when-window-scrolls’ in the current buffer." + (setq-local beacon-blink-when-window-scrolls nil)) + (add-hook 'eshell-before-prompt-hook #'oni-eshell--set-xterm-variables) (add-hook 'eshell-first-time-mode-hook #'oni-eshell--expand-keymap) (add-hook 'eshell-load-hook #'oni-eshell--disable-ansi-color-handling) (add-hook 'eshell-load-hook #'oni-eshell--enable-truncating-buffers) (add-hook 'eshell-load-hook #'oni-eshell--enable-xterm-filter) +(add-hook 'eshell-mode-hook #'oni-eshell-disable-beacon-on-scroll) (add-hook 'eshell-mode-hook 'esh-autosuggest-mode) (add-hook 'eshell-mode-hook 'eshell-syntax-highlighting-mode) (add-hook 'eshell-mode-hook 'goto-address-mode) -- cgit v1.2.3-54-g00ecf