[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/org-tree-slide aa2140f62b 126/144: Create custom variable
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/org-tree-slide aa2140f62b 126/144: Create custom variable org-tree-slide-content-margin-top |
Date: |
Tue, 18 Jan 2022 08:59:54 -0500 (EST) |
branch: elpa/org-tree-slide
commit aa2140f62b63083cdefa1617052b8a775be39c11
Author: Furkan Karataş <furkan.karatas02@gmail.com>
Commit: Furkan Karataş <furkan.karatas02@gmail.com>
Create custom variable org-tree-slide-content-margin-top
---
org-tree-slide.el | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/org-tree-slide.el b/org-tree-slide.el
index 76630f4c6d..eefca6bd1f 100644
--- a/org-tree-slide.el
+++ b/org-tree-slide.el
@@ -112,6 +112,11 @@ When nil, the body of the subtrees will be revealed."
:type 'boolean
:group 'org-tree-slide)
+(defcustom org-tree-slide-content-margin-top 2
+ "Specify the number of blank lines, the slide will move from this line."
+ :type 'integer
+ :group 'org-tree-slide)
+
(defcustom org-tree-slide-slide-in-effect t
"Using a visual effect of slide-in for displaying trees."
:type 'boolean
@@ -711,7 +716,7 @@ If HEADING-LEVEL is non-nil, the provided outline level is
checked."
"Apply slide in. The slide will be moved from BLANK-LINES below to top."
(let ((min-line -1))
(when org-tree-slide-header
- (setq min-line 2))
+ (setq min-line org-tree-slide-content-margin-top))
(while (< min-line blank-lines)
(org-tree-slide--set-slide-header blank-lines)
(sit-for org-tree-slide-slide-in-waiting)
@@ -830,7 +835,7 @@ Some number of BLANK-LINES will be shown below the header."
(defun org-tree-slide--show-slide-header (&optional lines)
"Show header. When LINES is nil, the default value is 2."
- (org-tree-slide--set-slide-header (or lines 2)))
+ (org-tree-slide--set-slide-header (or lines
org-tree-slide-content-margin-top)))
(defun org-tree-slide--hide-slide-header ()
"Hide header."
- [nongnu] elpa/org-tree-slide 949c77146f 025/144: org-tree-slide-skip-done set nil as default, (continued)
- [nongnu] elpa/org-tree-slide 949c77146f 025/144: org-tree-slide-skip-done set nil as default, ELPA Syncer, 2022/01/18
- [nongnu] elpa/org-tree-slide 28975a4492 018/144: Support displaying a slide number in a mode-line., ELPA Syncer, 2022/01/18
- [nongnu] elpa/org-tree-slide 996ed8cc6b 058/144: * README.org: update as el-get has recipe already included., ELPA Syncer, 2022/01/18
- [nongnu] elpa/org-tree-slide a3531738a8 059/144: Merge pull request #3 from yyr/master, ELPA Syncer, 2022/01/18
- [nongnu] elpa/org-tree-slide 6cf6e4ee84 065/144: Support buffers without headings, ELPA Syncer, 2022/01/18
- [nongnu] elpa/org-tree-slide 8e2ab19663 072/144: Default keymap was changed, ELPA Syncer, 2022/01/18
- [nongnu] elpa/org-tree-slide 933d6dc6e5 079/144: Merge pull request #14 from bennati/display-tree-with-narrow, ELPA Syncer, 2022/01/18
- [nongnu] elpa/org-tree-slide dff8f1a4a6 094/144: Added a hook for CONTENT viewing mode, ELPA Syncer, 2022/01/18
- [nongnu] elpa/org-tree-slide 20784de420 103/144: Update ChangeLog, ELPA Syncer, 2022/01/18
- [nongnu] elpa/org-tree-slide 508157fb21 104/144: Avoid max-lisp-eval-depth error #29, ELPA Syncer, 2022/01/18
- [nongnu] elpa/org-tree-slide aa2140f62b 126/144: Create custom variable org-tree-slide-content-margin-top,
ELPA Syncer <=
- [nongnu] elpa/org-tree-slide c9487e51b0 133/144: Add some links to useful videos, ELPA Syncer, 2022/01/18
- [nongnu] elpa/org-tree-slide 27f8bb6a96 140/144: Merge branch 'master' of github.com:takaxp/org-tree-slide, ELPA Syncer, 2022/01/18
- [nongnu] elpa/org-tree-slide a9dcef402a 128/144: Update the docstring of org-tree-slide-content-margin-top variable, ELPA Syncer, 2022/01/18
- [nongnu] elpa/org-tree-slide 917612a0d1 142/144: Merge pull request #47 from jypma/allow-empty-date-author, ELPA Syncer, 2022/01/18
- [nongnu] elpa/org-tree-slide 9da1d00777 141/144: Allow empty date and author to save on-screen space, ELPA Syncer, 2022/01/18
- [nongnu] elpa/org-tree-slide 8c301414bb 060/144: Remove brackets in title, ELPA Syncer, 2022/01/18
- [nongnu] elpa/org-tree-slide 0ef103eb14 087/144: Merge pull request #19 from kaushalmodi/lighter-defvar-plus-typo-fixes, ELPA Syncer, 2022/01/18
- [nongnu] elpa/org-tree-slide 403f5c002e 086/144: Add a defvar for lighter and minor typo fixes, ELPA Syncer, 2022/01/18
- [nongnu] elpa/org-tree-slide fed7ec7e6d 093/144: Added breadcrumbs feature (by Matus), ELPA Syncer, 2022/01/18
- [nongnu] elpa/org-tree-slide 16007b48c6 108/144: Refine skipping slide algorithm, ELPA Syncer, 2022/01/18