Push updated Nix Flake with Emacs config

This commit is contained in:
Hemant Gouni 2021-09-07 05:20:35 +00:00
parent 9dc763832f
commit efd14e775f
No known key found for this signature in database
GPG key ID: 53164AFCBE2B8D38
2 changed files with 29 additions and 1 deletions

17
emacs/init.el Normal file
View 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))

View file

@ -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
'';
}; };
}); });
} }