mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-25 17:46:14 +01:00
45 lines
1.1 KiB
Org Mode
45 lines
1.1 KiB
Org Mode
|
:PROPERTIES:
|
||
|
:header-args:emacs-lisp: :comments link :results none
|
||
|
:ID: 044ab3bc-7911-4bd3-b762-d7556695a027
|
||
|
:END:
|
||
|
#+title: Indent Bars
|
||
|
#+filetags: emacs-load
|
||
|
|
||
|
Load indent bars.
|
||
|
|
||
|
#+begin_src emacs-lisp :noweb yes
|
||
|
(use-package indent-bars
|
||
|
:straight
|
||
|
(:package "package"
|
||
|
:host github :type git
|
||
|
:repo "jdtsmith/indent-bars")
|
||
|
:hook
|
||
|
<<indent-bars-hooks>>
|
||
|
:config
|
||
|
<<indent-bars-visual>>)
|
||
|
#+end_src
|
||
|
|
||
|
Customize the visual of the bars to minimal style, based on the example shown on GitHub.
|
||
|
|
||
|
#+name: indent-bars-visual
|
||
|
#+begin_src emacs-lisp :tangle no
|
||
|
(setq
|
||
|
indent-bars-color '("#ffffff" :face-bg t :blend 0.3)
|
||
|
indent-bars-pattern "."
|
||
|
indent-bars-width-frac 0.1
|
||
|
indent-bars-pad-frac 0.1
|
||
|
indent-bars-zigzag nil
|
||
|
indent-bars-color-by-depth nil
|
||
|
indent-bars-highlight-current-depth nil
|
||
|
indent-bars-display-on-blank-lines nil)
|
||
|
#+end_src
|
||
|
|
||
|
|
||
|
Hook ~indent-bars-mode~ onto language major modes.
|
||
|
|
||
|
#+name: indent-bars-hooks
|
||
|
#+begin_src emacs-lisp :tangle no
|
||
|
(nix-mode . (lambda () (setq indent-bars-display-on-blank-lines t indent-bars-spacing-override 2) (indent-bars-mode)))
|
||
|
#+end_src
|
||
|
|