From 42e325db914d6865962a69dbcf86c8fa15e1e035 Mon Sep 17 00:00:00 2001 From: kj Date: Sat, 19 Nov 2022 13:59:47 -0400 Subject: [PATCH] Final touchs for eglot configuration. --- configs/init-eglot.el | 11 +++++++++++ configs/init-extensions.el | 8 +------- configs/lang-js.el | 2 ++ 3 files changed, 14 insertions(+), 7 deletions(-) diff --git a/configs/init-eglot.el b/configs/init-eglot.el index 33cd101..f45acff 100644 --- a/configs/init-eglot.el +++ b/configs/init-eglot.el @@ -10,9 +10,20 @@ (use-package eglot :defer t :straight (:type built-in) + :hook ((css-mode . eglot-ensure) + (html-mode . eglot-ensure)) :config (add-to-list 'eglot-server-programs '(php-mode . ("intelephense" "--stdio"))) ) +;; Emmet (mientras veo como hacer funcionar emmet-ls) +(use-package emmet-mode + :defer t + :straight t + :hook + ((html-mode . emmet-mode) + (web-mode . emmet-mode)) + ) + (provide 'init-eglot) ;;; init-eglot.el ends here diff --git a/configs/init-extensions.el b/configs/init-extensions.el index 3b8a6be..8b92c98 100644 --- a/configs/init-extensions.el +++ b/configs/init-extensions.el @@ -73,19 +73,13 @@ doom-modeline-indent-info nil doom-modeline-persp-name t)) -;; Emmet - Una ayuda para escribir HTML rĂ¡pidamente (escribre doc, luego preciona C-j y lo entenderĂ¡s) -(use-package emmet-mode - :defer t - :straight t - :hook (html-mode . emmet-mode)) - ;; Revisar sintaxis en vivo (use-package flycheck ;; :diminish flycheck-mode :defer t :straight t :hook (prog-mode . (lambda () - (unless (derived-mode-p 'js-mode 'makefile-mode) + (unless (derived-mode-p 'makefile-mode) (flycheck-mode)))) ) diff --git a/configs/lang-js.el b/configs/lang-js.el index 064ad02..0078ba1 100644 --- a/configs/lang-js.el +++ b/configs/lang-js.el @@ -12,6 +12,8 @@ :straight t :mode ("\\.js$" . js-mode) + :hook + (js-mode . eglot-ensure) :config (setq js-indent-level 2))