add emmet
This commit is contained in:
33
init.el
33
init.el
@@ -61,7 +61,6 @@
|
||||
|
||||
;; Add .asdf to exec-path
|
||||
(when (file-exists-p (file-truename "~/.asdf"))
|
||||
(setq env-changed t)
|
||||
(push (file-truename "~/.asdf/shims") exec-path)
|
||||
(push (file-truename "~/.asdf/bin") exec-path))
|
||||
|
||||
@@ -69,8 +68,7 @@
|
||||
(setq exec-path
|
||||
(cl-remove-if (lambda (s)
|
||||
(and (< 5 (length s))
|
||||
(string= (substring s 0 6) "/mnt/c")
|
||||
(setq env-changed t)))
|
||||
(string= (substring s 0 6) "/mnt/c")))
|
||||
exec-path))
|
||||
|
||||
(when exec-path
|
||||
@@ -157,14 +155,14 @@
|
||||
:defer t)
|
||||
|
||||
(use-package tree-sitter
|
||||
:mode ((" \\.tsx\\'" . tsx-ts-mode)
|
||||
(" \\.js\\'" . typescript-ts-mode)
|
||||
(" \\.mjs\\'" . typescript-ts-mode)
|
||||
(" \\.mts\\'" . typescript-ts-mode)
|
||||
(" \\.cjs\\'" . typescript-ts-mode)
|
||||
(" \\.ts\\'" . typescript-ts-mode)
|
||||
(" \\.jsx\\'" . tsx-ts-mode)
|
||||
(" \\.json\\'" . json-ts-mode))
|
||||
:mode (("\\.tsx\\'" . tsx-ts-mode)
|
||||
("\\.js\\'" . typescript-ts-mode)
|
||||
("\\.mjs\\'" . typescript-ts-mode)
|
||||
("\\.mts\\'" . typescript-ts-mode)
|
||||
("\\.cjs\\'" . typescript-ts-mode)
|
||||
("\\.ts\\'" . typescript-ts-mode)
|
||||
("\\.jsx\\'" . tsx-ts-mode)
|
||||
("\\.json\\'" . json-ts-mode))
|
||||
:custom
|
||||
(treesit-extra-load-path '("~/repos/tree-sitter-module/dist")))
|
||||
|
||||
@@ -433,3 +431,16 @@
|
||||
(use-package move-text
|
||||
:bind (("M-<up>" . move-text-up)
|
||||
("M-<down>" . move-text-down)))
|
||||
|
||||
(use-package emmet-mode
|
||||
:hook (sgml-mode tsx-ts-mode)
|
||||
:custom
|
||||
(emmet-jsx-major-modes
|
||||
'(rjsx-mode
|
||||
typescript-tsx-mode
|
||||
js-jsx-mode
|
||||
js2-jsx-mode
|
||||
jsx-mode
|
||||
js-mode
|
||||
;; Need to add this
|
||||
tsx-ts-mode)))
|
||||
|
||||
Reference in New Issue
Block a user