aboutsummaryrefslogtreecommitdiffstats
path: root/src/mode-def.el
diff options
context:
space:
mode:
Diffstat (limited to 'src/mode-def.el')
-rw-r--r--src/mode-def.el19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/mode-def.el b/src/mode-def.el
index e7ee679..104ace2 100644
--- a/src/mode-def.el
+++ b/src/mode-def.el
@@ -54,6 +54,25 @@ to provide proper CSS abbreviations completion."
:type 'boolean
:group 'emmet)
+(defcustom emmet-self-closing-tag-style "/"
+ "Self-closing tags style.
+
+This determines how Emmet expands self-closing tags.
+
+E.g., FOO is a self-closing tag. When expanding \"FOO\":
+
+When \" /\", the expansion is \"<FOO />\".
+When \"/\", the expansion is \"<FOO/>\".
+When \"\", the expansion is \"<FOO>\".
+
+Default value is \"/\".
+
+NOTE: only \" /\", \"/\" and \"\" are valid."
+ :type '(choice (const :tag " />" " /")
+ (const :tag "/>" "/")
+ (const :tag ">" ""))
+ :group 'emmet)
+
(defvar emmet-use-css-transform nil
"When true, transform Emmet snippets into CSS, instead of the usual HTML.")
(make-variable-buffer-local 'emmet-use-css-transform)