Function: ghostel--suppress-interfering-modes
ghostel--suppress-interfering-modes is a natively compiled function
defined in ghostel.el.
Signature
(ghostel--suppress-interfering-modes)
Documentation
Disable global minor modes that interfere with ghostel.
Suppresses global-hl-line-mode(var)/global-hl-line-mode(fun) (and buffer-local hl-line-mode) to
prevent redraw flicker.
Source Code
;; Defined in /nix/store/1252krff0gb2kisjcpp45m50cpdskfrl-emacs-packages-deps/share/emacs/site-lisp/ghostel.el
(defun ghostel--suppress-interfering-modes ()
"Disable global minor modes that interfere with ghostel.
Suppresses `global-hl-line-mode' (and buffer-local `hl-line-mode') to
prevent redraw flicker."
;; global-hl-line-mode: opt this buffer out by setting the variable
;; buffer-locally to nil (as documented in the hl-line.el commentary).
(when (bound-and-true-p global-hl-line-mode)
(setq ghostel--saved-hl-line-mode t)
(setq-local global-hl-line-mode nil)
(when (fboundp 'global-hl-line-unhighlight)
(global-hl-line-unhighlight)))
;; Buffer-local hl-line-mode
(when (bound-and-true-p hl-line-mode)
(setq ghostel--saved-hl-line-mode t)
(hl-line-mode -1)))