aboutsummaryrefslogtreecommitdiff
path: root/gui/emacs.nix
diff options
context:
space:
mode:
authorAdrian Kummerlaender2021-03-18 23:17:17 +0100
committerAdrian Kummerlaender2021-03-18 23:17:17 +0100
commitccc1eac53ffa7d676ee5883138dfc579263a8283 (patch)
tree78659b6291de2fd2c7aa307fc817a7ff796cf74e /gui/emacs.nix
parentc9714aadf661acac2925be923fe46101e20a245f (diff)
downloadnixos_home-ccc1eac53ffa7d676ee5883138dfc579263a8283.tar
nixos_home-ccc1eac53ffa7d676ee5883138dfc579263a8283.tar.gz
nixos_home-ccc1eac53ffa7d676ee5883138dfc579263a8283.tar.bz2
nixos_home-ccc1eac53ffa7d676ee5883138dfc579263a8283.tar.lz
nixos_home-ccc1eac53ffa7d676ee5883138dfc579263a8283.tar.xz
nixos_home-ccc1eac53ffa7d676ee5883138dfc579263a8283.tar.zst
nixos_home-ccc1eac53ffa7d676ee5883138dfc579263a8283.zip
Update
Diffstat (limited to 'gui/emacs.nix')
-rw-r--r--gui/emacs.nix16
1 files changed, 2 insertions, 14 deletions
diff --git a/gui/emacs.nix b/gui/emacs.nix
index 2c253f1..52c6345 100644
--- a/gui/emacs.nix
+++ b/gui/emacs.nix
@@ -55,15 +55,7 @@ in {
alwaysEnsure = false;
# remove builtin org as in https://github.com/chrisbarrett/.emacs.d/blob/6efd82c8e328e677dbef84331ed54763b89667a3/default.nix
# this is a workaround until I find a better way to force usage of a non-builtin up-to-date org version
- package = pkgs-unstable.emacsGcc.overrideAttrs (old: {
- patches = old.patches ++ [
- ./patch/optional-org-gnus.patch
- ];
- postPatch = ''
- ${old.postPatch}
- rm -r test/lisp/org lisp/org etc/org etc/ORG-NEWS doc/misc/org.texi
- '';
- });
+ package = pkgs-unstable.emacsGcc;
extraEmacsPackages = epkgs: (with epkgs.melpaPackages; [
pdf-tools
mu4e-alert
@@ -100,11 +92,7 @@ in {
org-protocol-shortcut
];
- # see https://github.com/rycee/home-manager/issues/589#issuecomment-466594137
- home.activation.linkInitEl = config.lib.dag.entryAfter ["writeBoundary"] ''
- mkdir -p ~/.emacs.d
- ln -s ${toString ./conf/init.el} ~/.emacs.d/init.el
- '';
+ home.file.".emacs.d/init.el".source = config.lib.file.mkOutOfStoreSymlink ./conf/init.el;
systemd.user.services.emacs.Service.ExecStart = pkgs.lib.mkForce "${pkgs.runtimeShell} -l -c 'exec emacs --fg-daemon'";