diff --git a/config/emacs/emacs.org b/config/emacs/emacs.org index 1e406228..1032a1ec 100644 --- a/config/emacs/emacs.org +++ b/config/emacs/emacs.org @@ -533,6 +533,11 @@ make sure to setup authinfo (use-package company-box :hook (company-mode . company-box-mode)) #+end_src +*** Formatting +#+begin_src emacs-lisp + (use-package format-all + :hook ('prog-mode-hook . 'format-all-mode)) +#+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: *** Key Bindings diff --git a/config/emacs/init.el b/config/emacs/init.el index 7f561101..12cdb6e4 100644 --- a/config/emacs/init.el +++ b/config/emacs/init.el @@ -453,6 +453,9 @@ (use-package company-box :hook (company-mode . company-box-mode)) +(use-package format-all + :hook ('prog-mode-hook . 'format-all-mode)) + (use-package dired :ensure nil :commands (dired dired-jump)