Update emacs.org

This commit is contained in:
Sako 2023-09-30 16:44:53 +04:00 committed by GitHub
parent 521c66bfd1
commit 1babcfb50c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -621,7 +621,9 @@ make sure to setup authinfo
***** Nix
#+begin_src emacs-lisp
(use-package nix-mode
:hook (nix-mode . format-all-mode)
:hook ((nix-mode . lsp)
(nix-mode . format-all-mode)
(nix-mode . (lambda () (setq-local format-all-formatters '(("Nix" alejandra))))))
:mode "\\.nix\\'")
#+end_src
*** Commenter
@ -647,9 +649,7 @@ make sure to setup authinfo
#+end_src
*** Formatting
#+begin_src emacs-lisp
(use-package format-all
:custom
((setq format-all-formatters (("Nix" alejandra)))))
(use-package format-all)
#+end_src
** Dired (quick file management in emacs)
Dired is a built-in file manager for Emacs that does some pretty amazing things! Here are some key bindings you should try out: