Moved to indent-bars to see if it will look better.
This commit is contained in:
parent
29d74bbd79
commit
ed9b074868
3 changed files with 64 additions and 10 deletions
37
README.org
37
README.org
|
|
@ -441,10 +441,39 @@ be overkill.
|
|||
Might as well highlight the parentheses to make them easier to spot.
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
(use-package highlight-parentheses
|
||||
(use-package indent-bars
|
||||
:ensure t
|
||||
:hook
|
||||
(prog-mode . highlight-parentheses-mode))
|
||||
:hook ((emacs-lisp-mode
|
||||
c-ts-mode
|
||||
c++-ts-mode
|
||||
clojure-ts-mode
|
||||
elisp-mode
|
||||
lisp-mode
|
||||
rust-ts-mode
|
||||
ruby-ts-mode) . indent-bars-mode)
|
||||
:custom
|
||||
;; Character used for the bar (for terminal or if stipples are disabled)
|
||||
(indent-bars-char "|")
|
||||
;; The width of the bar (0.1 to 1.0)
|
||||
(indent-bars-width-frac 0.1)
|
||||
;; How "offset" the bar is from the left
|
||||
(indent-bars-pad-frac 0.1)
|
||||
;; Whether to draw bars on the first level of indentation
|
||||
(indent-bars-starting-column 0)
|
||||
;; Tree-sitter support (highly recommended for C, Rust, and Ruby)
|
||||
(indent-bars-treesit-support t)
|
||||
;; Optimization: don't draw bars in strings/comments
|
||||
(indent-bars-no-descend-lists t)
|
||||
:config
|
||||
(setq
|
||||
indent-bars-color '(highlight :face-bg t :blend 0.15)
|
||||
indent-bars-pattern "."
|
||||
indent-bars-width-frac 0.1
|
||||
indent-bars-pad-frac 0.1
|
||||
indent-bars-zigzag nil
|
||||
indent-bars-color-by-depth '(:regexp "outline-\\([0-9]+\\)" :blend 1) ; blend=1: blend with BG only
|
||||
indent-bars-highlight-current-depth '(:blend 0.5) ; pump up the BG blend on current
|
||||
indent-bars-display-on-blank-lines t))
|
||||
#+end_src
|
||||
|
||||
** Apheleia
|
||||
|
|
@ -1174,8 +1203,6 @@ of a project, and convey the results to various completion facilities.
|
|||
consult-theme :preview-key '(:debounce 0.2 any)
|
||||
consult-ripgrep consult-git-grep consult-grep consult-man
|
||||
consult-bookmark consult-recent-file consult-xref
|
||||
consult--source-bookmark consult--source-file-register
|
||||
consult--source-recent-file consult--source-project-recent-file
|
||||
;; :preview-key "M-."
|
||||
:preview-key '(:debounce 0.4 any))
|
||||
|
||||
|
|
|
|||
|
|
@ -209,8 +209,6 @@ of a project, and convey the results to various completion facilities.
|
|||
consult-theme :preview-key '(:debounce 0.2 any)
|
||||
consult-ripgrep consult-git-grep consult-grep consult-man
|
||||
consult-bookmark consult-recent-file consult-xref
|
||||
consult--source-bookmark consult--source-file-register
|
||||
consult--source-recent-file consult--source-project-recent-file
|
||||
;; :preview-key "M-."
|
||||
:preview-key '(:debounce 0.4 any))
|
||||
|
||||
|
|
|
|||
|
|
@ -31,10 +31,39 @@ be overkill.
|
|||
Might as well highlight the parentheses to make them easier to spot.
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
(use-package highlight-parentheses
|
||||
(use-package indent-bars
|
||||
:ensure t
|
||||
:hook
|
||||
(prog-mode . highlight-parentheses-mode))
|
||||
:hook ((emacs-lisp-mode
|
||||
c-ts-mode
|
||||
c++-ts-mode
|
||||
clojure-ts-mode
|
||||
elisp-mode
|
||||
lisp-mode
|
||||
rust-ts-mode
|
||||
ruby-ts-mode) . indent-bars-mode)
|
||||
:custom
|
||||
;; Character used for the bar (for terminal or if stipples are disabled)
|
||||
(indent-bars-char "|")
|
||||
;; The width of the bar (0.1 to 1.0)
|
||||
(indent-bars-width-frac 0.1)
|
||||
;; How "offset" the bar is from the left
|
||||
(indent-bars-pad-frac 0.1)
|
||||
;; Whether to draw bars on the first level of indentation
|
||||
(indent-bars-starting-column 0)
|
||||
;; Tree-sitter support (highly recommended for C, Rust, and Ruby)
|
||||
(indent-bars-treesit-support t)
|
||||
;; Optimization: don't draw bars in strings/comments
|
||||
(indent-bars-no-descend-lists t)
|
||||
:config
|
||||
(setq
|
||||
indent-bars-color '(highlight :face-bg t :blend 0.15)
|
||||
indent-bars-pattern "."
|
||||
indent-bars-width-frac 0.1
|
||||
indent-bars-pad-frac 0.1
|
||||
indent-bars-zigzag nil
|
||||
indent-bars-color-by-depth '(:regexp "outline-\\([0-9]+\\)" :blend 1) ; blend=1: blend with BG only
|
||||
indent-bars-highlight-current-depth '(:blend 0.5) ; pump up the BG blend on current
|
||||
indent-bars-display-on-blank-lines t))
|
||||
#+end_src
|
||||
|
||||
** Apheleia
|
||||
|
|
|
|||
Loading…
Reference in a new issue