From 8fd337d09982ffbbcba370e778dae944507d6633 Mon Sep 17 00:00:00 2001 From: Amneesh Singh Date: Tue, 4 Jun 2024 16:58:29 +0530 Subject: [PATCH] home/natto/emacs: just use defaultInitFile Signed-off-by: Amneesh Singh --- home/natto/emacs.nix | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/home/natto/emacs.nix b/home/natto/emacs.nix index 0345654..21953bf 100644 --- a/home/natto/emacs.nix +++ b/home/natto/emacs.nix @@ -8,16 +8,6 @@ in nixpkgs.overlays = [ inputs.emacs-overlay.overlays.default ]; home = { - file = { - "init.el" = { - source = pkgs.runCommandLocal "tangle-emacs" { } '' - ${pkgs.coreutils}/bin/ln -s ${configFile} ./config.org - ${emacs}/bin/emacs -Q --batch ./config.org -f org-babel-tangle - cp ./config.el $out - ''; - target = "${config.home.homeDirectory}/.emacs.d/init.el"; - }; - }; shellAliases = rec { e = "emacs"; enw = e + " -nw"; @@ -33,6 +23,7 @@ in package = emacs; alwaysEnsure = true; alwaysTangle = true; + defaultInitFile = true; extraEmacsPackages = epkgs: with epkgs; [ use-package (tree-sitter-langs.withPlugins (_: tree-sitter-langs.plugins))