[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org-real 8b6a4e1 054/160: Added org-real-flex-width cus
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org-real 8b6a4e1 054/160: Added org-real-flex-width custom variable |
Date: |
Wed, 6 Oct 2021 16:58:14 -0400 (EDT) |
branch: externals/org-real
commit 8b6a4e15a348451687515d7d1dbac2dcf7e89675
Author: Tyler Grinn <tylergrinn@gmail.com>
Commit: Tyler Grinn <tylergrinn@gmail.com>
Added org-real-flex-width custom variable
---
org-real.el | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/org-real.el b/org-real.el
index 0fd60ad..5f96ce4 100644
--- a/org-real.el
+++ b/org-real.el
@@ -78,6 +78,11 @@
:type 'boolean
:group 'org-real)
+(defcustom org-real-flex-width 80
+ "When merging links, try to keep width below this"
+ :type 'number
+ :group 'org-real)
+
;;;; Faces
(defface org-real-primary
@@ -905,7 +910,8 @@ of BOX."
"Add BOX to a PARENT box already existing in WORLD.
This function ignores the :rel slot and adds BOX in such a way
-that the width of WORLD is kept below 80 characters if possible."
+that the width of WORLD is kept below `org-real-flex-width'
+characters if possible."
(with-slots ((siblings children)) parent
(let* ((all-siblings (seq-filter
(lambda (sibling)
@@ -937,7 +943,7 @@ that the width of WORLD is kept below 80 characters if
possible."
(oset box :x-order (+ 1 last-sibling-x))
(let ((new-width (org-real--get-width world)))
(org-real--make-dirty world)
- (when (and (> new-width cur-width) (> new-width 80))
+ (when (and (> new-width cur-width) (> new-width
org-real-flex-width))
(oset box :y-order (+ 1 last-sibling-y))
(oset box :x-order 0))))))))
- [elpa] externals/org-real dd03f41 025/160: Initial release, (continued)
- [elpa] externals/org-real dd03f41 025/160: Initial release, ELPA Syncer, 2021/10/06
- [elpa] externals/org-real 0b764c7 022/160: get-width compares children with margins included, ELPA Syncer, 2021/10/06
- [elpa] externals/org-real a5df40f 026/160: Bump version, ELPA Syncer, 2021/10/06
- [elpa] externals/org-real ac799d3 040/160: Merge into single file, ELPA Syncer, 2021/10/06
- [elpa] externals/org-real 7d9d67d 044/160: Rearranging, ELPA Syncer, 2021/10/06
- [elpa] externals/org-real 2ebeb5c 046/160: Updated readme, ELPA Syncer, 2021/10/06
- [elpa] externals/org-real 8445765 047/160: Added customization group, ELPA Syncer, 2021/10/06
- [elpa] externals/org-real cb64694 051/160: Added children when following a link, ELPA Syncer, 2021/10/06
- [elpa] externals/org-real 01899e9 052/160: More edge cases, ELPA Syncer, 2021/10/06
- [elpa] externals/org-real b9a7e8a 053/160: Removed existing containers from completion candidates, ELPA Syncer, 2021/10/06
- [elpa] externals/org-real 8b6a4e1 054/160: Added org-real-flex-width custom variable,
ELPA Syncer <=
- [elpa] externals/org-real 91b96a1 057/160: Renamed org-real-include-children to org-real-include-context, ELPA Syncer, 2021/10/06
- [elpa] externals/org-real 35aa1c1 062/160: Updated readme, ELPA Syncer, 2021/10/06
- [elpa] externals/org-real 43f349e 067/160: Typos, ELPA Syncer, 2021/10/06
- [elpa] externals/org-real baf5c9b 072/160: Updated documentation, ELPA Syncer, 2021/10/06
- [elpa] externals/org-real bc2c7ea 068/160: Using infinity, ELPA Syncer, 2021/10/06
- [elpa] externals/org-real c37d17c 073/160: Bump version, ELPA Syncer, 2021/10/06
- [elpa] externals/org-real e0109e8 079/160: Typo, ELPA Syncer, 2021/10/06
- [elpa] externals/org-real 106063e 077/160: Complete redesign, ELPA Syncer, 2021/10/06
- [elpa] externals/org-real 573df43 087/160: Removed reference to org-collect-keywords, ELPA Syncer, 2021/10/06
- [elpa] externals/org-real 0cb9745 082/160: Satisfying elc compiler, ELPA Syncer, 2021/10/06