refactor: Visual indentation guides

- Switch from highlight-indentation package to highlight-indent-guides.
- Activate visual indentation in a prog-mode hook, rather than doing
  within each individual major mode. It was already done within all
  major modes based on prog-mode anyway.
- Add new siren-display-indetation module and function as a central way
  to enable visual indetation guides. This makes switching the
  underlying package at some point in the future much easier.
This commit is contained in:
2020-01-26 18:53:44 +00:00
parent 702d2989dd
commit 8ed4a4e6f5
30 changed files with 54 additions and 65 deletions

View File

@@ -6,6 +6,7 @@
;;; Code:
(require 'siren-display-indentation)
(require 'siren-fci)
(require 'siren-flyspell)
(require 'siren-linum)
@@ -35,12 +36,13 @@
whitespace-action '(auto-cleanup))
(setcar (nthcdr 4 org-emphasis-regexp-components) 20)
(org-set-emph-re 'org-emphasis-regexp-components org-emphasis-regexp-components)
(org-set-emph-re 'org-emphasis-regexp-components
org-emphasis-regexp-components)
(linum-mode t)
(flyspell-mode)
(fci-mode)
(highlight-indentation-current-column-mode)
(siren-display-indentation)
(smartparens-mode +1)
(visual-line-mode +1)
(whitespace-mode +1)))