doom: configure apheleia
This commit is contained in:
parent
a1dd7c69e6
commit
efa54aabd2
3 changed files with 15 additions and 3 deletions
|
@ -44,9 +44,9 @@
|
|||
};
|
||||
|
||||
homeConfigurations."payasrelekar" = home-manager.lib.homeManagerConfiguration {
|
||||
pkgs = import nixpkgs {
|
||||
pkgs = import nixpkgs {
|
||||
system = "x86_64-darwin";
|
||||
};
|
||||
};
|
||||
modules = [ ./hosts/charles/home.nix ];
|
||||
|
||||
# Optionally use extraSpecialArgs
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
|
||||
# Nix things
|
||||
nixpkgs-fmt
|
||||
nixfmt
|
||||
nil
|
||||
nixd
|
||||
|
||||
|
|
|
@ -1229,7 +1229,18 @@ When Emacs is opened in Windows Subsystem for Linux, open web links in Firefox o
|
|||
(css-mode . css-ts-mode)
|
||||
(python-mode . python-ts-mode))))
|
||||
#+end_src
|
||||
|
||||
** Apheleia
|
||||
#+begin_src emacs-lisp :lexical t
|
||||
(use-package! apheleia
|
||||
:commands (apheleia-format-buffer)
|
||||
:init
|
||||
(map! (:map global-map
|
||||
:leader
|
||||
:desc "format" "TAB" #'apheleia-format-buffer))
|
||||
:config
|
||||
(add-to-list 'apheleia-formatters '(nixpkgs-fmt "nixpkgs-fmt"))
|
||||
(add-to-list 'apheleia-mode-alist '(nix-ts-mode . nixpkgs-fmt)))
|
||||
#+end_src
|
||||
# Local Variables:
|
||||
# jinx-local-words: "lockfiles"
|
||||
# End:
|
||||
|
|
Reference in a new issue