Update .emacs.d/README.org

This commit is contained in:
Anthony Rodriguez 2024-07-05 17:19:20 +02:00
parent b4859f807a
commit c1332e1ec6

View file

@ -207,7 +207,9 @@ which-key is a nice little package that allows to have a minibuffer showing whic
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package which-key (use-package which-key
:config :config
(which-key-mode)) (which-key-mode)
(which-key-add-key-based-replacements ;; naming prefixes
"C-c l" "lsp"))
#+end_src #+end_src
** Discord presence ** Discord presence
@ -229,28 +231,28 @@ I use org-superstar-mode, as it makes headlines and bullets look really nice.
** Eglot ** Eglot
Eglot is a built in LSP client for Emacs. I prefer it to LSP as it's more lightweight and more straightforward to setup correctly. Eglot is a built in LSP client for Emacs. I prefer it to LSP as it's more lightweight and more straightforward to setup correctly.
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package eglot (use-package eglot
:bind (:map eglot-mode-map :bind (:map eglot-mode-map
("C-c C-d" . eldoc) ("C-c l h" . eldoc)
("C-c C-e" . eglot-rename) ("C-c l r" . eglot-rename)
("C-c C-o" . python-sort-imports) ("C-c l f" . eglot-format-buffer))
("C-c C-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)))
(setq-default eglot-workspace-configuration '(:typescript (:format (:indentSize 2 (setq-default eglot-workspace-configuration '(:typescript (:format (:indentSize 2
:convertTabsToSpaces t :convertTabsToSpaces t
:semicolons "remove")))) :semicolons "remove"))))
;; makes eglot faster using a rust wrapper, needs to be in PATH ;; makes eglot faster using a rust wrapper, needs to be in PATH
(use-package eglot-booster (use-package eglot-booster
:vc (:fetcher github :repo jdtsmith/eglot-booster) :vc (:fetcher github :repo jdtsmith/eglot-booster)
:after eglot :after eglot
:config :config
(eglot-booster-mode)) (eglot-booster-mode))
#+end_src #+end_src
** Autocompletion ** Autocompletion
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package corfu (use-package corfu
:custom :custom
(corfu-auto t) (corfu-auto t)