refactor
This commit is contained in:
parent
d0ae6c0516
commit
49e68108ac
2 changed files with 14 additions and 13 deletions
13
emacs/emacs.nix
Normal file
13
emacs/emacs.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
{ lib, pkgs, config, ... }:
|
||||||
|
{
|
||||||
|
programs.emacs =
|
||||||
|
let
|
||||||
|
emacsPath = ../emacs;
|
||||||
|
in {
|
||||||
|
enable = true;
|
||||||
|
extraConfig = "
|
||||||
|
(add-to-list 'load-path' \"${emacsPath}\")
|
||||||
|
(load \"beluga-mode.el\")
|
||||||
|
";
|
||||||
|
};
|
||||||
|
}
|
||||||
14
home.nix
14
home.nix
|
|
@ -3,6 +3,7 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./sway/sway.nix
|
./sway/sway.nix
|
||||||
|
./emacs/emacs.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
home.username = "nat";
|
home.username = "nat";
|
||||||
|
|
@ -43,19 +44,6 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
programs.emacs =
|
|
||||||
let
|
|
||||||
emacsPath = ./emacs;
|
|
||||||
in {
|
|
||||||
enable = true;
|
|
||||||
extraConfig = "
|
|
||||||
(add-to-list 'load-path' \"${emacsPath}\")
|
|
||||||
(load \"beluga-mode.el\")
|
|
||||||
";
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
EDITOR = "kak";
|
EDITOR = "kak";
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue