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

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

[nongnu] elpa/web-mode 57856ba64b 2/2: Merge pull request #1272 from gly


From: ELPA Syncer
Subject: [nongnu] elpa/web-mode 57856ba64b 2/2: Merge pull request #1272 from glyph/custom-comment-indent
Date: Wed, 29 Mar 2023 02:03:17 -0400 (EDT)

branch: elpa/web-mode
commit 57856ba64b9382811b35df0d9ab0a24aede0c1f0
Merge: ff394e83b4 a59ae2e200
Author: fxbois <fxbois@gmail.com>
Commit: GitHub <noreply@github.com>

    Merge pull request #1272 from glyph/custom-comment-indent
    
    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]