diff --git a/README.org b/README.org index bb5c053..14dc779 100644 --- a/README.org +++ b/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)) diff --git a/config/completion.org b/config/completion.org index d542492..7e5ffff 100644 --- a/config/completion.org +++ b/config/completion.org @@ -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)) diff --git a/config/formatting.org b/config/formatting.org index 71cdc5a..3d413fc 100644 --- a/config/formatting.org +++ b/config/formatting.org @@ -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