Przeglądaj źródła

ob-python: specify defcustom parameters

* lisp/ob-python.el (org-babel-python-hline-to,
  org-babel-python-None-to): Specify customize group as 'org-babel and
  widget type as 'string.
Achim Gratz 12 lat temu
rodzic
commit
ba59eebb12
1 zmienionych plików z 6 dodań i 2 usunięć
  1. 6 2
      lisp/ob-python.el

+ 6 - 2
lisp/ob-python.el

@@ -53,10 +53,14 @@ This will typically be either 'python or 'python-mode.")
 (defvar org-src-preserve-indentation)
 
 (defcustom org-babel-python-hline-to "None"
-  "Replace hlines in incoming tables with this when translating to python.")
+  "Replace hlines in incoming tables with this when translating to python."
+  :group 'org-babel
+  :type 'string)
 
 (defcustom org-babel-python-None-to 'hline
-  "Replace 'None' in python tables with this before returning.")
+  "Replace 'None' in python tables with this before returning."
+  :group 'org-babel
+  :type 'string)
 
 (defun org-babel-execute:python (body params)
   "Execute a block of Python code with Babel.