branch: externals/indent-bars commit da29b37efd6e65fbe6217f6ae508280158777c9e Author: JD Smith <93749+jdtsm...@users.noreply.github.com> Commit: JD Smith <93749+jdtsm...@users.noreply.github.com>
Add examples file --- examples.org | 64 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) diff --git a/examples.org b/examples.org new file mode 100644 index 0000000000..f7d0f576b1 --- /dev/null +++ b/examples.org @@ -0,0 +1,64 @@ +* Some examples of ~indent-bars~ color/layout possibilities: + +** Minimal: + +#+begin_src emacs-lisp + (setq + indent-bars-color '(highlight :face-bg t :blend 0.2) + 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 + +** Stripes: + +#+begin_src emacs-lisp + (setq + indent-bars-color '(highlight :face-bg t :blend 0.25) + indent-bars-pattern ". .. . " + indent-bars-zigzag nil + indent-bars-width-frac 0.4 + indent-bars-pad-frac 0.1 + indent-bars-color-by-depth '(:palette ("black" "white") :blend 0.65) + indent-bars-highlight-current-depth '(:color "red" :blend 0.15)) +#+end_src + +** Simple: + +#+begin_src emacs-lisp + (setq + indent-bars-pattern "." + indent-bars-width-frac 0.5 + indent-bars-pad-frac 0.25 + indent-bars-color-by-depth nil + indent-bars-highlight-current-depth '(:face default :blend 0.4)) +#+end_src + +** Zig-zag: + +#+begin_src emacs-lisp + (setq + indent-bars-pattern ". . . . " + indent-bars-width-frac 0.25 + indent-bars-pad-frac 0.2 + indent-bars-zigzag 0.1 + indent-bars-color-by-depth '(:regexp "outline-\\([0-9]+\\)" :blend 1) + indent-bars-highlight-current-depth '(:pattern "." :pad 0.1 :width 0.45)) +#+end_src + +** Background zig-zag: + +#+begin_src emacs-lisp + (setq + indent-bars-color '(highlight :face-bg t :blend 0.2) + indent-bars-pattern ".*.*.*.*" + indent-bars-width-frac 0.5 + indent-bars-pad-frac 0.2 + indent-bars-zigzag 0.1 + indent-bars-color-by-depth '(:palette ("red" "green" "orange" "cyan") :blend 1) + indent-bars-highlight-current-depth '(:background "gray10")) +#+end_src