diff --git a/config.el b/config.el index 322e9ce..7163234 100644 --- a/config.el +++ b/config.el @@ -91,3 +91,11 @@ (cl-remove-if (lambda (cmd) (string-equal "BibTeX" (car cmd))) TeX-command-list))) (setq TeX-command-default "LaTeX")) +;; emmet mode +(after! emmet-mode + (add-hook 'html-mode-hook 'emmet-mode) + (add-hook 'css-mode-hook 'emmet-mode) + (add-hook 'jade-mode-hook 'emmet-mode) ; If you use Jade files + (add-hook 'web-mode-hook 'emmet-mode)) ; If you use web-mode +(after! emmet-mode + (define-key emmet-mode-keymap (kbd "C-j") 'emmet-expand-line)) diff --git a/packages.el b/packages.el index b3322c7..64ee48d 100644 --- a/packages.el +++ b/packages.el @@ -47,3 +47,4 @@ ;; (unpin! pinned-package another-pinned-package) ;; ...Or *all* packages (NOT RECOMMENDED; will likely break things) ;; (unpin! t) +(package! emmet-mode)