From d834090002c11a0c949769899f0e96a3f0692db4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Vask=C3=B3?= Date: Sun, 6 Sep 2020 14:43:28 +0200 Subject: [PATCH 1/2] nix-doom-emacs: updating hunks to better align with newer doom revisions --- fix-paths.patch | 6 +++--- nix-integration.patch | 11 ++++------- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/fix-paths.patch b/fix-paths.patch index 36ae118..5e70bdb 100644 --- a/fix-paths.patch +++ b/fix-paths.patch @@ -1,8 +1,8 @@ diff --git a/core/autoload/config.el b/core/autoload/config.el -index 6bb9ae300..81ab62860 100644 +index 1e643cf49..501cbfba4 100644 --- a/core/autoload/config.el +++ b/core/autoload/config.el -@@ -20,7 +20,7 @@ +@@ -23,7 +23,7 @@ (defun doom/find-file-in-private-config () "Search for a file in `doom-private-dir' inside nixos-config." (interactive) @@ -10,4 +10,4 @@ index 6bb9ae300..81ab62860 100644 + (doom-project-find-file "@private@")) ;;;###autoload - (defun doom/reload () + (defun doom/goto-private-init-file () diff --git a/nix-integration.patch b/nix-integration.patch index c78136f..8faafd9 100644 --- a/nix-integration.patch +++ b/nix-integration.patch @@ -1,15 +1,12 @@ diff --git a/core/core.el b/core/core.el -index cb12f8d08..03f370691 100644 +index c8cfb0495..d8ed107bd 100644 --- a/core/core.el +++ b/core/core.el -@@ -63,22 +63,21 @@ decrease this. If you experience stuttering, increase this.") - "The root directory for Doom's modules. Must end with a slash.") - +@@ -92,20 +92,20 @@ envvar will enable this at startup.") (defconst doom-local-dir -- (if-let (localdir (getenv "DOOMLOCALDIR")) -- (expand-file-name (file-name-as-directory localdir)) + (if-let (localdir (getenv "DOOMLOCALDIR")) + (expand-file-name (file-name-as-directory localdir)) - (concat doom-emacs-dir ".local/")) -+ (or (getenv "DOOMLOCALDIR") + "@local@/") "Root directory for local storage. From 19a3e7e9b8515f98f234efa98b26c33344dcba5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Vask=C3=B3?= Date: Sun, 6 Sep 2020 14:44:25 +0200 Subject: [PATCH 2/2] elfeed: use `doom-cache-dir` which is outside of the nix store Fixes: #45 --- fix-paths.patch | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/fix-paths.patch b/fix-paths.patch index 5e70bdb..385487b 100644 --- a/fix-paths.patch +++ b/fix-paths.patch @@ -11,3 +11,18 @@ index 1e643cf49..501cbfba4 100644 ;;;###autoload (defun doom/goto-private-init-file () +diff --git a/modules/app/rss/config.el b/modules/app/rss/config.el +index c5657eec8..34f303420 100644 +--- a/modules/app/rss/config.el ++++ b/modules/app/rss/config.el +@@ -18,8 +18,8 @@ easier to scroll through.") + (use-package! elfeed + :commands elfeed + :init +- (setq elfeed-db-directory (concat doom-local-dir "elfeed/db/") +- elfeed-enclosure-default-dir (concat doom-local-dir "elfeed/enclosures/")) ++ (setq elfeed-db-directory (concat doom-cache-dir "elfeed/db/") ++ elfeed-enclosure-default-dir (concat doom-cache-dir "elfeed/enclosures/")) + :config + (setq elfeed-search-filter "@2-week-ago " + elfeed-show-entry-switch #'pop-to-buffer