This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-11-01
Channels
- # announcements (3)
- # babashka (20)
- # beginners (77)
- # calva (27)
- # cider (5)
- # clara (3)
- # clj-kondo (9)
- # cljs-dev (4)
- # cljsrn (5)
- # clojure (26)
- # clojure-europe (32)
- # clojure-italy (5)
- # clojure-nl (3)
- # clojure-uk (5)
- # clojurescript (25)
- # clojureverse-ops (4)
- # core-async (49)
- # cursive (15)
- # data-science (1)
- # datahike (4)
- # datomic (3)
- # docker (1)
- # events (1)
- # helix (5)
- # holy-lambda (3)
- # introduce-yourself (1)
- # jobs (1)
- # kaocha (2)
- # lsp (15)
- # malli (42)
- # off-topic (18)
- # pathom (18)
- # pedestal (12)
- # polylith (7)
- # rdf (1)
- # re-frame (22)
- # reitit (2)
- # releases (1)
- # remote-jobs (1)
- # rewrite-clj (33)
- # shadow-cljs (85)
- # spacemacs (3)
- # vim (12)
- # xtdb (29)
So, I’ve been bouncing between Spacemacs and my own Emacs setup. I’m back in the Spacemacs camp and am looking for a way to configure it to trust variables in my various .dir-locals.el
files such as
((nil . ((eval . (progn (setenv "CODE_PROFILE" "dev")
(setenv "JAVA_HOME" "/Library/Java/JavaVirtualMachines/temurin-8.jdk/Contents/Home"))))))
Vanilla Spacemacs prompts to apply these, but choosing the persistent !
causes these trusted values to be written in ~/.spacemacs
in dotspacemacs/emacs-custom-settings
which is undesirable as I commit this to git.
Is there a recommended approach to handling this situation, or is my .dir-locals.el
to blame - requiring trusting?I have the trusted variables in the .spacemacs file as usual, I just do not check in any of the custom-settings section of that file.
Oh, that’s a pretty pragmatic and simple solution…