From ccc1eac53ffa7d676ee5883138dfc579263a8283 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Thu, 18 Mar 2021 23:17:17 +0100 Subject: Update --- gui/emacs.nix | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) (limited to 'gui') 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'"; -- cgit v1.2.3