mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
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:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user