Push updated Nix Flake with Emacs config
This commit is contained in:
parent
9dc763832f
commit
efd14e775f
2 changed files with 29 additions and 1 deletions
17
emacs/init.el
Normal file
17
emacs/init.el
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
(require 'evil)
|
||||||
|
(evil-mode 1)
|
||||||
|
|
||||||
|
(load-theme 'gruvbox t)
|
||||||
|
|
||||||
|
(menu-bar-mode -1)
|
||||||
|
(tool-bar-mode -1)
|
||||||
|
(toggle-scroll-bar -1)
|
||||||
|
|
||||||
|
(load-file (let ((coding-system-for-read 'utf-8))
|
||||||
|
(shell-command-to-string "agda-mode locate")))
|
||||||
|
|
||||||
|
(setq auto-mode-alist
|
||||||
|
(append
|
||||||
|
'(("\\.agda\\'" . agda2-mode)
|
||||||
|
("\\.lagda.md\\'" . agda2-mode))
|
||||||
|
auto-mode-alist))
|
13
flake.nix
13
flake.nix
|
@ -24,13 +24,24 @@
|
||||||
src = plfa;
|
src = plfa;
|
||||||
})
|
})
|
||||||
]);
|
]);
|
||||||
|
emacsWithPackages = (pkgs.emacsPackagesFor pkgs.emacs).emacsWithPackages
|
||||||
|
(epkgs: (with epkgs.melpaPackages; [
|
||||||
|
gruvbox-theme
|
||||||
|
agda2-mode
|
||||||
|
evil
|
||||||
|
]) ++ (with epkgs.elpaPackages; [
|
||||||
|
undo-tree
|
||||||
|
]));
|
||||||
in {
|
in {
|
||||||
devShell =
|
devShell =
|
||||||
pkgs.mkShell {
|
pkgs.mkShell {
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
pkgs.emacs
|
emacsWithPackages
|
||||||
agda
|
agda
|
||||||
];
|
];
|
||||||
|
shellHook = ''
|
||||||
|
XDG_CONFIG_HOME=$(pwd) emacs
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue