Working on Emacs

- now my custom Emacs package lives inside `pkgs/`
- small org-mode updates
- added custom Emacs commands to rebuild NixOS
This commit is contained in:
Andrea Ciceri 2021-10-06 10:50:19 +02:00
parent ce354185e8
commit 54a41ac797
No known key found for this signature in database
GPG key ID: A1FC89532D1C5654
6 changed files with 73 additions and 51 deletions

View file

@ -1,5 +1,6 @@
final: prev: {
# keep sources this first
sources = prev.callPackage (import ./_sources/generated.nix) {};
customEmacs = prev.callPackage (import ./emacs) {};
# then, call packages with `final.callPackage`
}

38
pkgs/emacs/default.nix Normal file
View file

@ -0,0 +1,38 @@
{ pkgs, ... }:
let
myEmacs = pkgs.emacsPgtkGcc;
emacsWithPackages = (pkgs.emacsPackagesFor myEmacs).emacsWithPackages;
in
emacsWithPackages (
epkgs: (
with epkgs.melpaStablePackages; []
) ++ (
with epkgs.melpaPackages; [
all-the-icons
use-package
evil
evil-collection
helm
projectile
magit
fira-code-mode
org-superstar
nix-mode
lispy
lsp-mode
dap-mode
which-key
sudo-utils
treemacs
treemacs-evil
treemacs-projectile
treemacs-icons-dired
treemacs-magit
treemacs-persp
]
) ++ (
with epkgs.elpaPackages; [
modus-themes
]
) ++ []
)