add emmet
This commit is contained in:
14
custom.el
14
custom.el
@@ -6,13 +6,13 @@
|
|||||||
;; If there is more than one, they won't work right.
|
;; If there is more than one, they won't work right.
|
||||||
'(package-selected-packages
|
'(package-selected-packages
|
||||||
'(aider browse-kill-ring caddyfile-mode cape cider company corfu
|
'(aider browse-kill-ring caddyfile-mode cape cider company corfu
|
||||||
dockerfile-mode dumb-jump dumber-jump emacs-lldb
|
dockerfile-mode dumb-jump dumber-jump emacs-lldb emmet
|
||||||
exec-path-from-shell flycheck fsharp-mode haskell-mode
|
emmet-mode exec-path-from-shell flycheck fsharp-mode
|
||||||
haskell-ts-mode helm htmlize idris-mode marginalia
|
haskell-mode haskell-ts-mode helm htmlize idris-mode
|
||||||
markdown-ts-mode move-text multiple-cursors odin-mode
|
marginalia markdown-ts-mode move-text multiple-cursors
|
||||||
orderless org-mode parinfer-rust-mode realgud-lldb rg sly
|
odin-mode orderless org-mode parinfer-rust-mode
|
||||||
terraform-mode tree-sitter-langs vertico visual-fill-column
|
realgud-lldb rg sly terraform-mode tree-sitter-langs
|
||||||
yasnippet-snippets zig-mode))
|
vertico visual-fill-column yasnippet-snippets zig-mode))
|
||||||
'(safe-local-variable-directories '("/Users/grant/programming/project/edit/"))
|
'(safe-local-variable-directories '("/Users/grant/programming/project/edit/"))
|
||||||
'(safe-local-variable-values
|
'(safe-local-variable-values
|
||||||
'((Package . CL-USER) (Syntax . ANSI-Common-Lisp) (Base . 10)
|
'((Package . CL-USER) (Syntax . ANSI-Common-Lisp) (Base . 10)
|
||||||
|
|||||||
33
init.el
33
init.el
@@ -61,7 +61,6 @@
|
|||||||
|
|
||||||
;; Add .asdf to exec-path
|
;; Add .asdf to exec-path
|
||||||
(when (file-exists-p (file-truename "~/.asdf"))
|
(when (file-exists-p (file-truename "~/.asdf"))
|
||||||
(setq env-changed t)
|
|
||||||
(push (file-truename "~/.asdf/shims") exec-path)
|
(push (file-truename "~/.asdf/shims") exec-path)
|
||||||
(push (file-truename "~/.asdf/bin") exec-path))
|
(push (file-truename "~/.asdf/bin") exec-path))
|
||||||
|
|
||||||
@@ -69,8 +68,7 @@
|
|||||||
(setq exec-path
|
(setq exec-path
|
||||||
(cl-remove-if (lambda (s)
|
(cl-remove-if (lambda (s)
|
||||||
(and (< 5 (length s))
|
(and (< 5 (length s))
|
||||||
(string= (substring s 0 6) "/mnt/c")
|
(string= (substring s 0 6) "/mnt/c")))
|
||||||
(setq env-changed t)))
|
|
||||||
exec-path))
|
exec-path))
|
||||||
|
|
||||||
(when exec-path
|
(when exec-path
|
||||||
@@ -157,14 +155,14 @@
|
|||||||
:defer t)
|
:defer t)
|
||||||
|
|
||||||
(use-package tree-sitter
|
(use-package tree-sitter
|
||||||
:mode ((" \\.tsx\\'" . tsx-ts-mode)
|
:mode (("\\.tsx\\'" . tsx-ts-mode)
|
||||||
(" \\.js\\'" . typescript-ts-mode)
|
("\\.js\\'" . typescript-ts-mode)
|
||||||
(" \\.mjs\\'" . typescript-ts-mode)
|
("\\.mjs\\'" . typescript-ts-mode)
|
||||||
(" \\.mts\\'" . typescript-ts-mode)
|
("\\.mts\\'" . typescript-ts-mode)
|
||||||
(" \\.cjs\\'" . typescript-ts-mode)
|
("\\.cjs\\'" . typescript-ts-mode)
|
||||||
(" \\.ts\\'" . typescript-ts-mode)
|
("\\.ts\\'" . typescript-ts-mode)
|
||||||
(" \\.jsx\\'" . tsx-ts-mode)
|
("\\.jsx\\'" . tsx-ts-mode)
|
||||||
(" \\.json\\'" . json-ts-mode))
|
("\\.json\\'" . json-ts-mode))
|
||||||
:custom
|
:custom
|
||||||
(treesit-extra-load-path '("~/repos/tree-sitter-module/dist")))
|
(treesit-extra-load-path '("~/repos/tree-sitter-module/dist")))
|
||||||
|
|
||||||
@@ -433,3 +431,16 @@
|
|||||||
(use-package move-text
|
(use-package move-text
|
||||||
:bind (("M-<up>" . move-text-up)
|
:bind (("M-<up>" . move-text-up)
|
||||||
("M-<down>" . move-text-down)))
|
("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