emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/web-mode a59ae2e200 1/2: customizable markup comment inden


From: ELPA Syncer
Subject: [nongnu] elpa/web-mode a59ae2e200 1/2: customizable markup comment indent
Date: Wed, 29 Mar 2023 02:03:16 -0400 (EDT)

branch: elpa/web-mode
commit a59ae2e20089b067e6abc3d26016663f85558ab0
Author: Glyph <glyph@twistedmatrix.com>
Commit: Glyph <glyph@twistedmatrix.com>

    customizable markup comment indent
---
 web-mode.el | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/web-mode.el b/web-mode.el
index bfbafb883d..c393e357e0 100644
--- a/web-mode.el
+++ b/web-mode.el
@@ -88,6 +88,13 @@
   :safe #'integerp
   :group 'web-mode)
 
+(defcustom web-mode-markup-comment-indent-offset
+  5
+  "Html comment indentation level."
+  :type 'integer
+  :safe #'integerp
+  :group 'web-mode)
+
 (defcustom web-mode-css-indent-offset
   (if (and (boundp 'standard-indent) standard-indent) standard-indent 2)
   "CSS indentation level."
@@ -8770,7 +8777,7 @@ Also return non-nil if it is the command 
`self-insert-command' is remapped to."
                 ((string-match-p "^-" curr-line)
                  (setq offset (+ offset 3)))
                 (t
-                 (setq offset (+ offset 5)))
+                 (setq offset (+ offset 
web-mode-markup-comment-indent-offset)))
                 ) ;cond
               )
              ((and (string= web-mode-engine "django") (looking-back "{% 
comment %}" (point-min)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]