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

@@ -1,27 +0,0 @@
;;; siren-prog-mode.el --- jimeh's Emacs Siren: defaults for programming modes
;;; Commentary:
;; Basic configuration shared across all programming languages.
;;; Code:
(require 'siren-display-indentation)
(use-package prog-mode
:straight (:type built-in)
:hook
(prog-mode . siren-prog-mode-setup)
:init
(defun siren-prog-mode-setup ()
"Default coding hook, useful with any programming language."
(setq fill-column 80
whitespace-action '(auto-cleanup))
(siren-display-indentation 1)
(visual-line-mode t)
(whitespace-mode t)))
(provide 'siren-prog-mode)
;;; siren-prog-mode.el ends here

View File

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