Post AkibnDB92ZRf4Yfs8W by sanityinc@hachyderm.io
 (DIR) More posts by sanityinc@hachyderm.io
 (DIR) Post #AkiZV1GIPPFizZHVCK by picnoir@social.alternativebit.fr
       2024-08-07T08:24:02.939826Z
       
       0 likes, 0 repeats
       
       You're using Nix, Emacs, Nixd as a LSP server and are willing to auto-format your files RFC-style on save?  (add-hook   'nix-mode-hook   #'(lambda ()       (add-hook        'after-save-hook        #'(lambda ()            (lsp-format-buffer)            (save-buffer)))))Now, you're also a elisp guru and can simplify this nested mess? I'm interested :)
       
 (DIR) Post #AkiZnOVEjoygHk217Q by yuka@fedi.yuka.dev
       2024-08-07T08:25:31.293242Z
       
       0 likes, 0 repeats
       
       @picnoir doesn’t look that bad tbh. it’s only 5 closing parenthesis in the end
       
 (DIR) Post #AkiZnPGjtCyWf4FxA0 by picnoir@social.alternativebit.fr
       2024-08-07T08:27:35.259421Z
       
       0 likes, 0 repeats
       
       @yuka true :D
       
 (DIR) Post #AkibnDB92ZRf4Yfs8W by sanityinc@hachyderm.io
       2024-08-07T08:45:48Z
       
       1 likes, 1 repeats
       
       @picnoir I also published a nixfmt package on MELPA last week, so you can just enable `nixfmt-on-save-mode` via dir-locals or similar, which will work even if you're not connected to the lsp server.