Update .emacs.d/README.org

This commit is contained in:
Anthony Rodriguez 2024-07-06 15:18:51 +02:00
parent c3ec12e7b1
commit 0c81f281cf

View file

@ -5,8 +5,9 @@
* Table of Contents :TOC: * Table of Contents :TOC:
- [[#packages-initialization][Packages initialization]] - [[#packages-initialization][Packages initialization]]
- [[#vc-use-package][vc-use-package]] - [[#vc-use-package][vc-use-package]]
- [[#automatically-tangle-on-save][Automatically tangle on save]]
- [[#general-config][General config]] - [[#general-config][General config]]
- [[#no-littering][no-littering]] - [[#move-temporary-files-to-tmpusername][Move temporary files to /tmp/{username}]]
- [[#minimal-interface][Minimal interface]] - [[#minimal-interface][Minimal interface]]
- [[#match-fish-shells-path][Match fish shell's path]] - [[#match-fish-shells-path][Match fish shell's path]]
- [[#bell][Bell]] - [[#bell][Bell]]
@ -26,6 +27,7 @@
- [[#magit][Magit]] - [[#magit][Magit]]
- [[#docker][Docker]] - [[#docker][Docker]]
- [[#languages][Languages]] - [[#languages][Languages]]
- [[#copilot][Copilot]]
- [[#mail][Mail]] - [[#mail][Mail]]
* Packages initialization * Packages initialization
@ -63,8 +65,7 @@ vc-use-package integrates package-vc-install, which allows installing packages f
#+end_src #+end_src
* General config * General config
** no-littering ** Move temporary files to /tmp/{username}
no-littering is a useful package that allows to put all of the autosave files and temporary files in one directory (the files ending with ~ for instance).
#+begin_src emacs-lisp #+begin_src emacs-lisp
(defvar user-temporary-file-directory (defvar user-temporary-file-directory
@ -283,6 +284,8 @@ Eglot is a built in LSP client for Emacs. I prefer it to LSP as it's more lightw
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package eglot (use-package eglot
:defer t :defer t
:config
(eglot-events-buffer-size 0)
:bind (:map eglot-mode-map :bind (:map eglot-mode-map
("C-c l h" . eldoc) ("C-c l h" . eldoc)
("C-c l r" . eglot-rename) ("C-c l r" . eglot-rename)
@ -292,7 +295,9 @@ Eglot is a built in LSP client for Emacs. I prefer it to LSP as it's more lightw
(python-ts-mode . eglot-ensure) (python-ts-mode . eglot-ensure)
(eglot--managed-mode . electric-pair-mode) (eglot--managed-mode . electric-pair-mode)
(eglot--managed-mode . (lambda () (eglot--managed-mode . (lambda ()
(add-hook 'after-save-hook #'eglot-format-buffer nil t))))) (add-hook 'after-save-hook #'eglot-format-buffer nil t)))
(eglot--managed-mode . display-line-numbers-mode)))
(setq-default eglot-workspace-configuration '(:typescript (:format (:indentSize 2 (setq-default eglot-workspace-configuration '(:typescript (:format (:indentSize 2
:convertTabsToSpaces t :convertTabsToSpaces t
@ -375,6 +380,16 @@ Tree-sitter is a built-in Emacs package that allows us to have extremely well in
(add-to-list 'auto-mode-alist '("\\.py\\'" . python-ts-mode)) (add-to-list 'auto-mode-alist '("\\.py\\'" . python-ts-mode))
#+end_src #+end_src
** Copilot
#+begin_src emacs-lisp
(use-package copilot
:vc
(:fetcher github :repo copilot-emacs/copilot.el)
:hook
(eglot--managed-mode . copilot-mode)
:bind (:map copilot-completion-map
("TAB" . copilot-accept-completion)))
#+end_src
* Mail * Mail
#+begin_src emacs-lisp #+begin_src emacs-lisp
(autoload 'notmuch "notmuch" "notmuch mail" t) (autoload 'notmuch "notmuch" "notmuch mail" t)