[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/org-auto-tangle 69c4aa39f3 2/2: Merge pull request #23 fro
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/org-auto-tangle 69c4aa39f3 2/2: Merge pull request #23 from rdparker/customization |
Date: |
Tue, 9 Aug 2022 13:59:00 -0400 (EDT) |
branch: elpa/org-auto-tangle
commit 69c4aa39f33c157f124db81050928838aee54704
Merge: f63d7a803b bc888e9c5e
Author: lispy-dobby <yilkalargawworkneh@gmail.com>
Commit: GitHub <noreply@github.com>
Merge pull request #23 from rdparker/customization
Make a couple variables `defcustom'
---
org-auto-tangle.el | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/org-auto-tangle.el b/org-auto-tangle.el
index 8cc1860384..538bdfc60a 100644
--- a/org-auto-tangle.el
+++ b/org-auto-tangle.el
@@ -51,19 +51,23 @@
(require 'org)
(require 'ox) ; org-export--parse-option-keyword
-(defvar org-auto-tangle-default nil
+(defcustom org-auto-tangle-default nil
"Default behavior of org-auto-tangle.
If nil (default), auto-tangle will only happen on buffers with
the `#+auto_tangle: t' keyword. If t, auto-tangle will happen on
-all Org buffers unless `#+auto_tangle: nil' is set.")
+all Org buffers unless `#+auto_tangle: nil' is set."
+ :group 'org-auto-tangle
+ :type 'boolean)
-(defvar org-auto-tangle-babel-safelist '()
+(defcustom org-auto-tangle-babel-safelist '()
"List of full path of files for which code blocks need to be evaluated.
By default, code blocks are not evaluated during the auto-tangle to avoid
possible code execution from unstrusted source. To enable code blocks
evaluation
-for a specific file, add its full path to this list.")
+for a specific file, add its full path to this list."
+ :group 'org-auto-tangle
+ :type '(repeat (file :tag "Full file path")))
(defun org-auto-tangle-find-value (buffer)
"Return the value of the `auto_tangle' keyword in BUFFER."
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [nongnu] elpa/org-auto-tangle 69c4aa39f3 2/2: Merge pull request #23 from rdparker/customization,
ELPA Syncer <=