Enable alejandra for Nix formatting
This commit is contained in:
parent
a5a93adb85
commit
1dac032fe9
12
config.org
12
config.org
|
@ -19,6 +19,8 @@
|
|||
- [[#enable-proc-macro-support][Enable proc macro support]]
|
||||
- [[#cc][C/C++]]
|
||||
- [[#default-style][Default style]]
|
||||
- [[#nix][Nix]]
|
||||
- [[#formatting][Formatting]]
|
||||
- [[#org-mode][Org mode]]
|
||||
- [[#directory][Directory]]
|
||||
- [[#appearance][Appearance]]
|
||||
|
@ -247,6 +249,16 @@ Setup the default format for C/C++ editing.
|
|||
(setq c-basic-offset 2))
|
||||
#+END_SRC
|
||||
|
||||
** Nix
|
||||
|
||||
*** Formatting
|
||||
|
||||
Use [[https://github.com/kamadorueda/alejandra][alejandra]] to format Nix code.
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
(set-formatter! 'alejandra "alejandra --quiet" :modes '(nix-mode))
|
||||
#+end_src
|
||||
|
||||
* Org mode
|
||||
|
||||
** Directory
|
||||
|
|
2
init.el
2
init.el
|
@ -55,7 +55,7 @@
|
|||
(evil +everywhere); come to the dark side, we have cookies
|
||||
;;file-templates ; auto-snippets for empty files
|
||||
fold ; (nigh) universal code folding
|
||||
;;(format +onsave) ; automated prettiness
|
||||
(format) ; automated prettiness
|
||||
;;god ; run Emacs commands without modifier keys
|
||||
;;lispy ; vim for lisp, for people who don't like vim
|
||||
;;multiple-cursors ; editing in many places at once
|
||||
|
|
Loading…
Reference in a new issue