chore(editor): Use siren-display-indentation exclusively

Instead of directly using the my current favorite indentation
highlighting package in various places, only use the
siren-display-indentation function. This lets me control it from a
single central place.
This commit is contained in:
2020-03-30 21:57:32 +01:00
parent 3e31bf0f2f
commit f0e8bd2388
4 changed files with 6 additions and 7 deletions

View File

@@ -11,9 +11,6 @@
:commands highlight-indent-guides-mode
:diminish highlight-indent-guides-mode
:hook
(prog-mode . highlight-indent-guides-mode)
:custom
(highlight-indent-guides-auto-even-face-perc 3)
(highlight-indent-guides-auto-odd-face-perc 2.5)

View File

@@ -9,10 +9,7 @@
(use-package highlight-indentation
:defer t
:diminish (highlight-indentation-mode
highlight-indentation-current-column-mode)
:hook
(prog-mode . highlight-indent-guides-mode))
highlight-indentation-current-column-mode))
(provide 'siren-highlight-indentation)
;;; siren-highlight-indentation.el ends here

View File

@@ -7,6 +7,7 @@
;;; Code:
(require 'siren-company)
(require 'siren-display-indentation)
(require 'siren-flycheck)
(require 'siren-folding)
(require 'siren-lsp)
@@ -43,6 +44,7 @@
(when (fboundp 'auto-highlight-symbol-mode)
(auto-highlight-symbol-mode -1))
(siren-display-indentation -1)
(company-mode +1)
(lsp-deferred)
(siren-folding)

View File

@@ -6,6 +6,8 @@
;;; Code:
(require 'siren-display-indentation)
(use-package prog-mode
:straight (:type built-in)
:hook
@@ -17,6 +19,7 @@
(setq fill-column 80
whitespace-action '(auto-cleanup))
(siren-display-indentation 1)
(visual-line-mode t)
(whitespace-mode t)))