From f7b994942b935470a8ebd2dc0d49e0ae6af3594f Mon Sep 17 00:00:00 2001 From: Raymond Huang Date: Mon, 13 Aug 2018 06:23:45 -0700 Subject: [PATCH] Replace 2 with tab-width --- plantuml-mode.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plantuml-mode.el b/plantuml-mode.el index 0b14207..dcad135 100644 --- a/plantuml-mode.el +++ b/plantuml-mode.el @@ -393,7 +393,7 @@ Uses prefix (as PREFIX) to choose where to display it: (if (= -2 relative-depth) 0 - (+ 2 (current-indentation)))))) + (+ tab-width (current-indentation)))))) (defun plantuml-indent-line () (interactive) @@ -403,7 +403,7 @@ Uses prefix (as PREFIX) to choose where to display it: (indent-line-to 0) (let ((offset (plantuml-current-block-indentation))) (when (looking-at plantuml-indent-regexp-end) - (setq offset (max (- offset 2) 0))) + (setq offset (max (- offset tab-width) 0))) (indent-line-to offset)))))