From 756635ed6cf5cfc9b5dff31f05c452b25220cacd Mon Sep 17 00:00:00 2001 From: Phil Crosby Date: Mon, 2 Jan 2023 21:32:22 -0800 Subject: [PATCH] Exclude magit-log-mode from yascroll. See https://github.com/emacsorphanage/yascroll/issues/38 --- .emacs.d/init.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 66a7b56..6cb8ff0 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -299,9 +299,11 @@ ;; I use this to as an indicator to indicate where I am in the file. ;; (global-yascroll-bar-mode 1) -;; By default, the scroll bar only shows when you're scrolling the buffer. Show it all the tiem. +;; By default, the scroll bar only shows when you're scrolling the buffer. Show it all the time. ;; Note: some report performance issues in some modes. https://github.com/emacsorphanage/yascroll/issues/38 (setq-default yascroll:delay-to-hide nil) +;; magit-log-mode is slow due to yascroll:delay-to-hide. Magit doesn't need scrollbars, so exclude it. +(setq yascroll:disabled-modes '(magit-log-mode)) (set-face-attribute 'yascroll:thumb-fringe nil :background "#666666") (set-face-attribute 'yascroll:thumb-fringe nil :foreground "#666666")