branch: elpa/jinja2-mode
commit 97dacbedac038c4d32e5107283508778abf81452
Author: Florian Mounier <[email protected]>
Commit: Florian Mounier <[email protected]>

    Add indent on insert tags
---
 jinja2.el | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/jinja2.el b/jinja2.el
index 97b06fdb96..677d7f3829 100644
--- a/jinja2.el
+++ b/jinja2.el
@@ -114,6 +114,7 @@
 (defun jinja2-insert-tag ()
   "Insert an empty tag"
   (interactive)
+  (jinja2-indent-line)
   (insert "{% ")
   (save-excursion
     (insert " %}")))
@@ -121,6 +122,7 @@
 (defun jinja2-insert-var ()
   "Insert an empty tag"
   (interactive)
+  (jinja2-indent-line)
   (insert "{{ ")
   (save-excursion
     (insert " }}")))
@@ -128,6 +130,7 @@
 (defun jinja2-insert-comment ()
   "Insert an empty tag"
   (interactive)
+  (jinja2-indent-line)
   (insert "{# ")
   (save-excursion
     (insert " #}")))

Reply via email to