Initial attempt at configuring use-package with nix
This commit is contained in:
@@ -885,6 +885,7 @@ helps with a few places where nix's string interpolation was causing problems.
|
||||
(mkIf cfg.desktop.enable {
|
||||
programs.emacs = {
|
||||
enable = true;
|
||||
init.enable = true;
|
||||
extraConfig = builtins.readFile ./emacs.el;
|
||||
};
|
||||
})
|
||||
@@ -2281,20 +2282,16 @@ And finally, we want to hide the cursor when presenting.
|
||||
** Terminal
|
||||
#+BEGIN_SRC nix
|
||||
{
|
||||
programs.emacs = {
|
||||
extraPackages = epkgs: with epkgs; [
|
||||
eat
|
||||
];
|
||||
programs.emacs.init.usePackage = {
|
||||
eat = {
|
||||
enable = true;
|
||||
command = ["eat"];
|
||||
hook = ["(eshell-load . eat-eshell-mode)"];
|
||||
};
|
||||
};
|
||||
}
|
||||
#+END_SRC
|
||||
|
||||
#+BEGIN_SRC elisp
|
||||
(use-package eat
|
||||
:commands (eat)
|
||||
:hook (eshell-load . eat-eshell-mode))
|
||||
#+END_SRC
|
||||
|
||||
** Ledger
|
||||
#+BEGIN_SRC nix
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user