about summary refs log tree commit diff
path: root/modules/workstation/emacs/early-init.el
diff options
context:
space:
mode:
Diffstat (limited to 'modules/workstation/emacs/early-init.el')
-rw-r--r--modules/workstation/emacs/early-init.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/workstation/emacs/early-init.el b/modules/workstation/emacs/early-init.el
new file mode 100644
index 000000000000..8cac0647dd4e
--- /dev/null
+++ b/modules/workstation/emacs/early-init.el
@@ -0,0 +1,4 @@
+;; This defaults to XDG_CONFIG_HOME, which is bad because lots of
+;; state gets written to it.
+(setq user-emacs-directory
+      (concat (file-name-as-directory (getenv "XDG_DATA_HOME")) "emacs"))