Update .emacs.d/README.org

This commit is contained in:
Anthony Rodriguez 2024-07-05 21:41:47 +02:00
parent c1332e1ec6
commit b996b7df86

View file

@ -237,7 +237,8 @@ Eglot is a built in LSP client for Emacs. I prefer it to LSP as it's more lightw
("C-c l r" . eglot-rename) ("C-c l r" . eglot-rename)
("C-c l f" . eglot-format-buffer)) ("C-c l f" . eglot-format-buffer))
:hook ((tsx-ts-mode . eglot-ensure) :hook ((tsx-ts-mode . eglot-ensure)
(typescript-ts-mode . eglot-ensure))) (typescript-ts-mode . eglot-ensure)
(electric-pair-mode)))
(setq-default eglot-workspace-configuration '(:typescript (:format (:indentSize 2 (setq-default eglot-workspace-configuration '(:typescript (:format (:indentSize 2
:convertTabsToSpaces t :convertTabsToSpaces t
@ -309,25 +310,6 @@ Tree-sitter is a built-in Emacs package that allows us to have extremely well in
(add-to-list 'auto-mode-alist '("\\.tsx\\'" . tsx-ts-mode)) (add-to-list 'auto-mode-alist '("\\.tsx\\'" . tsx-ts-mode))
#+end_src #+end_src
*** Alapheia
#+begin_src emacs-lisp
(use-package apheleia
:ensure t
:config
(apheleia-global-mode +1)
(setf (alist-get 'prettier apheleia-formatters)
'(npx "prettier" file))
(setf (alist-get 'prettier-typescript apheleia-formatters)
'(npx "prettier" file)))
(use-package dtrt-indent)
#+end_src
** expand-region
#+begin_src emacs-lisp
(use-package expand-region
:bind ("C-=" . er/expand-region))
#+end_src
* Mail * Mail
#+begin_src emacs-lisp #+begin_src emacs-lisp
(autoload 'notmuch "notmuch" "notmuch mail" t) (autoload 'notmuch "notmuch" "notmuch mail" t)