emacs setup
This commit is contained in:
32
packages/emacs/default.nix~
Normal file
32
packages/emacs/default.nix~
Normal file
@@ -0,0 +1,32 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
let
|
||||
emacsWithPackages = (pkgs.emacsPackagesFor pkgs.emacs).emacsWithPackages;
|
||||
in {
|
||||
programs.emacs = {
|
||||
enable = true;
|
||||
extraConfig = ''
|
||||
(load-theme 'catppuccin :no-confirm)
|
||||
|
||||
(require 'nix-mode)
|
||||
(add-to-list 'auto-mode-alist '("\\.nix\\'" . nix-mode))
|
||||
|
||||
(require 'evil)
|
||||
|
||||
(evil-mode 1)
|
||||
|
||||
'';
|
||||
package = emacsWithPackages (epkgs: (with epkgs.melpaStablePackages; [
|
||||
catppuccin-theme
|
||||
])
|
||||
++ (with epkgs.melpaPackages; [
|
||||
evil
|
||||
nix-mode
|
||||
lsp-mode
|
||||
])
|
||||
++ (with epkgs.elpaPackages; [
|
||||
])
|
||||
++ [ pkgs.notmuch ]);
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user