~abcdw/rde-devel

rde: feature-org: Fix org-id-locations-file. v1 APPLIED

Nicolas Graves: 3
 rde: feature-org: Fix org-id-locations-file.
 rde: feature-power-menu: Fix (require 'all-the-icons).
 feature-emacs: Make native-comp-eln-load-path respect XDG base dirs.

 3 files changed, 4 insertions(+), 2 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~abcdw/rde-devel/patches/44249/mbox | git am -3
Learn more about email & git

[PATCH 1/3] rde: feature-org: Fix org-id-locations-file. Export this patch

---
 src/rde/features/emacs-xyz.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/rde/features/emacs-xyz.scm b/src/rde/features/emacs-xyz.scm
index cb3805f1..a3a5a98b 100644
--- a/src/rde/features/emacs-xyz.scm
+++ b/src/rde/features/emacs-xyz.scm
@@ -4012,7 +4012,7 @@ built-in help that provides much more contextual information."

        (with-eval-after-load 'org-id
          (setq
           org-id-locations
           org-id-locations-file
           (concat (or (getenv "XDG_CACHE_HOME") "~/.cache")
                   "/emacs/org-id-locations")))

-- 
2.41.0

[PATCH 2/3] rde: feature-power-menu: Fix (require 'all-the-icons). Export this patch

---
 src/rde/features/emacs-xyz.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/rde/features/emacs-xyz.scm b/src/rde/features/emacs-xyz.scm
index a3a5a98b..db1b810a 100644
--- a/src/rde/features/emacs-xyz.scm
+++ b/src/rde/features/emacs-xyz.scm
@@ -1925,7 +1925,7 @@ supply custom menu items in the form of modules.")))
            "Prompt for an action on the power-menu, and make this action."
            (interactive)
            ,@(if (get-value 'emacs-all-the-icons config)
                  ,((require 'all-the-icons)) '())
                  '((require 'all-the-icons)) '())
            (let* ((selected
                    (completing-read
                     "power-menu command:"
-- 
2.41.0

[PATCH 3/3] feature-emacs: Make native-comp-eln-load-path respect XDG base dirs. Export this patch

Even with native-comp-jit-compilation set to nil, ~/.config/emacs/eln-cache
would fill up with asynchronous native compilation cache.

This is partly expected because of trampolines, see the manual
https://www.gnu.org/software/emacs/manual/html_node/elisp/Native_002dCompilation-Variables.html

This commit makes the eln-cache go to "XDG_CACHE_HOME"/emacs. You might need
to restart emacs two times to get back your normal emacs experience.
---
 src/rde/features/emacs/early-init.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/rde/features/emacs/early-init.el b/src/rde/features/emacs/early-init.el
index ae02aa98..90f3b96f 100644
--- a/src/rde/features/emacs/early-init.el
+++ b/src/rde/features/emacs/early-init.el
@@ -23,3 +23,5 @@
;; they are installed and site files are compiled when gccemacs is installed.
;; (setq comp-deferred-compilation nil)
(setq native-comp-jit-compilation nil)
(startup-redirect-eln-cache
 (concat (or (getenv "XDG_CACHE_HOME") "~/.cache") "/emacs"))
-- 
2.41.0