mirror of
https://github.com/vale981/python-docstring-mode
synced 2025-03-04 17:11:41 -05:00
Use a customizable var instead of `sentence-end-double-space'
This commit is contained in:
parent
a4397b0148
commit
651ddff650
1 changed files with 9 additions and 1 deletions
|
@ -31,6 +31,14 @@
|
|||
|
||||
;;; Code:
|
||||
|
||||
(defcustom python-docstring-sentence-end-double-space t
|
||||
"If non-nil, use double spaces when formatting text.
|
||||
|
||||
Operates simililarly to `sentence-end-double-space'. When nil, a
|
||||
single space is used."
|
||||
:type 'boolean
|
||||
:group 'python-docstring)
|
||||
|
||||
(defvar python-docstring-script
|
||||
(concat (if load-file-name
|
||||
(file-name-directory load-file-name)
|
||||
|
@ -76,7 +84,7 @@
|
|||
string-start string-end
|
||||
(format
|
||||
(concat "python2 %s --offset %s --indent %s --width %s"
|
||||
(unless sentence-end-double-space
|
||||
(unless python-docstring-sentence-end-double-space
|
||||
" --single-space"))
|
||||
(shell-quote-argument python-docstring-script)
|
||||
orig-offset
|
||||
|
|
Loading…
Add table
Reference in a new issue