Allow easier customization of indentation level

This commit is contained in:
Joost Diepenmaat 2019-09-24 12:56:29 +02:00
parent 1590a75da6
commit fc9db3174a
No known key found for this signature in database
GPG Key ID: C945FE6EED8A098C
1 changed files with 4 additions and 1 deletions

View File

@ -143,6 +143,9 @@
:type 'boolean
:group 'plantuml)
(defcustom plantuml-indent-level 8
"Indentation level of PlantUML lines")
(defun plantuml-jar-render-command (&rest arguments)
"Create a command line to execute PlantUML with arguments (as ARGUMENTS)."
(let* ((cmd-list (append plantuml-java-args (list (expand-file-name plantuml-jar-path)) plantuml-jar-args arguments))
@ -708,7 +711,7 @@ Restore point to same position in text of the line as before indentation."
(let ((original-position-eol (- (line-end-position) (point))))
(save-excursion
(beginning-of-line)
(indent-line-to (* tab-width (plantuml-current-block-depth))))
(indent-line-to (* plantuml-indent-level (plantuml-current-block-depth))))
;; restore position in text of line
(goto-char (- (line-end-position) original-position-eol))))