feat(core): use buffer local hl-line-mode instead of global-hl-line-mode

This allows specific major-modes to disable hl-line-mode, which is
desired some terminal/shell modes like vterm where the hl-line flickers
constantly while typing.
This commit is contained in:
2020-08-16 11:34:01 +01:00
parent 3602399165
commit 7ed3e92dbb
6 changed files with 50 additions and 5 deletions

View File

@@ -0,0 +1,21 @@
;;; siren-fundamental-mode.el --- jimeh's Emacs Siren: fundamental-mode configuration.
;;; Commentary:
;; Basic configuration for fundamental-mode.
;;; Code:
(use-package fundamental-mode
:straight (:type built-in)
:defer t
:hook
(fundamental-mode . siren-fundamental-mode-setup)
:init
(defun siren-fundamental-mode-setup ()
(hl-line-mode t)))
(provide 'siren-fundamental-mode)
;;; siren-fundamental-mode.el ends here

View File

@@ -20,6 +20,7 @@
whitespace-action '(auto-cleanup))
(siren-display-indentation 1)
(hl-line-mode t)
(visual-line-mode t)
(whitespace-mode t)))

View File

@@ -0,0 +1,21 @@
;;; siren-special-mode.el --- jimeh's Emacs Siren: special-mode configuration.
;;; Commentary:
;; Basic configuration for special-mode.
;;; Code:
(use-package special-mode
:straight (:type built-in)
:defer t
:hook
(special-mode . siren-special-mode-setup)
:init
(defun siren-special-mode-setup ()
(hl-line-mode t)))
(provide 'siren-special-mode)
;;; siren-special-mode.el ends here

View File

@@ -14,6 +14,7 @@
(defun siren-text-mode-setup ()
(setq fill-column 80)
(hl-line-mode t)
(visual-line-mode t)))
(provide 'siren-text-mode)