[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/org-auto-tangle bc888e9c5e 1/2: Make a couple variables `d
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/org-auto-tangle bc888e9c5e 1/2: Make a couple variables `defcustom' |
Date: |
Tue, 9 Aug 2022 13:58:59 -0400 (EDT) |
branch: elpa/org-auto-tangle
commit bc888e9c5ef826f9b4d769612c4101b62f02aee5
Author: Ron Parker <rdparker@gmail.com>
Commit: Ron Parker <rdparker@gmail.com>
Make a couple variables `defcustom'
This includes `org-auto-tangle-default' and
`org-auto-tangle-babel-safelist'.
---
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 bc888e9c5e 1/2: Make a couple variables `defcustom',
ELPA Syncer <=