branch: externals/boxy-headings
commit 8a50fe8af7c423398ceb3df2510bc4996b1af5e2
Author: Tyler Grinn <[email protected]>
Commit: Tyler Grinn <[email protected]>
Added max-visibility option
---
boxy-headings.el | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/boxy-headings.el b/boxy-headings.el
index 501a7af..22992e4 100644
--- a/boxy-headings.el
+++ b/boxy-headings.el
@@ -85,6 +85,10 @@
"Default level to display boxes."
:type 'number)
+(defcustom boxy-headings-max-visibility 2
+ "Maximum visibility to show when cycling global visibility."
+ :type 'number)
+
(defcustom boxy-headings-tooltips t
"Show tooltips in a boxy diagram."
:type 'boolean)
@@ -126,7 +130,7 @@
&key
(display-buffer-fn 'display-buffer-pop-up-window)
(visibility boxy-headings-default-visibility)
- (max-visibility 2)
+ (max-visibility boxy-headings-max-visibility)
select
header
(default-margin-x boxy-headings-margin-x)