From e777a9d59fb3868f54a97ab35d03800f24beb78a Mon Sep 17 00:00:00 2001 From: Erwin Boskma Date: Fri, 26 May 2023 08:35:57 +0200 Subject: [PATCH] Use prettier in place of prettier-js prettier-js does not seem to be maintained --- home-manager/modules/emacs/config.org | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/home-manager/modules/emacs/config.org b/home-manager/modules/emacs/config.org index 82a4ec3..7e3c51f 100644 --- a/home-manager/modules/emacs/config.org +++ b/home-manager/modules/emacs/config.org @@ -1089,11 +1089,9 @@ Indent 2 spaces Prettier has my preference for formatting JavaScript and TypeScript #+begin_src emacs-lisp - (use-package prettier-js - :config - (setq prettier-js-args '("--single-quote" "true")) - :hook - (js2-mode . typescript-mode)) + (use-package prettier + :config + (global-prettier-mode)) #+end_src TypeScript stuff @@ -1185,7 +1183,7 @@ Add support for Elixir with [[https://github.com/elixir-editors/emacs-elixir][el (elixir-mode . (lambda () (add-hook 'before-save-hook 'elixir-format nil t))) (elixir-mode . eglot-ensure)) :config - (setq lsp-elixir-server-command '("elixir-ls")) + ;; (setq lsp-elixir-server-command '("elixir-ls")) (add-to-list 'auto-mode-alist '("\\.[hl]eex\\'" . elixir-mode))) #+end_src