mirror of
https://github.com/nix-community/nix-doom-emacs
synced 2025-08-25 14:13:38 -05:00
Nix expression to install and configure doom-emacs
This commit is contained in:
50
fix-paths.patch
Normal file
50
fix-paths.patch
Normal file
@@ -0,0 +1,50 @@
|
||||
diff --git a/bin/doom b/bin/doom
|
||||
index bd381e5ab..37cc69569 100755
|
||||
--- a/bin/doom
|
||||
+++ b/bin/doom
|
||||
@@ -6,7 +6,7 @@
|
||||
":"; DOOMBASE=$(dirname "$0")/..
|
||||
":"; [ "$1" = -d ] || [ "$1" = --debug ] && { shift; export DEBUG=1; }
|
||||
":"; [ "$1" = doc ] || [ "$1" = doctor ] && { cd "$DOOMBASE"; shift; exec $EMACS --script bin/doom-doctor "$@"; exit 0; }
|
||||
-":"; [ "$1" = run ] && { cd "$DOOMBASE"; shift; exec $EMACS -q --no-splash -l bin/doom "$@"; exit 0; }
|
||||
+":"; [ "$1" = run ] && { cd "$DOOMBASE"; shift; exec $EMACS -q --no-splash -l bin/.doom-wrapped "$@"; exit 0; }
|
||||
":"; exec $EMACS --script "$0" -- "$@"
|
||||
":"; exit 0
|
||||
|
||||
diff --git a/core/core.el b/core/core.el
|
||||
index 9cc1cfc25..fcbc3a3cf 100644
|
||||
--- a/core/core.el
|
||||
+++ b/core/core.el
|
||||
@@ -54,20 +54,20 @@ decrease this. If you experience stuttering, increase this.")
|
||||
|
||||
(defvar doom-local-dir
|
||||
(or (getenv "DOOMLOCALDIR")
|
||||
- (concat doom-emacs-dir ".local/"))
|
||||
+ "@local@/")
|
||||
"Root directory for local storage.
|
||||
|
||||
Use this as a storage location for this system's installation of Doom Emacs.
|
||||
These files should not be shared across systems. By default, it is used by
|
||||
`doom-etc-dir' and `doom-cache-dir'. Must end with a slash.")
|
||||
|
||||
-(defvar doom-etc-dir (concat doom-local-dir "etc/")
|
||||
+(defvar doom-etc-dir "~/.local/doom"
|
||||
"Directory for non-volatile local storage.
|
||||
|
||||
Use this for files that don't change much, like server binaries, external
|
||||
dependencies or long-term shared data. Must end with a slash.")
|
||||
|
||||
-(defvar doom-cache-dir (concat doom-local-dir "cache/")
|
||||
+(defvar doom-cache-dir "~/.cache/doom/"
|
||||
"Directory for volatile local storage.
|
||||
|
||||
Use this for files that change often, like cache files. Must end with a slash.")
|
||||
@@ -189,7 +189,7 @@ users).")
|
||||
(setq abbrev-file-name (concat doom-local-dir "abbrev.el")
|
||||
async-byte-compile-log-file (concat doom-etc-dir "async-bytecomp.log")
|
||||
bookmark-default-file (concat doom-etc-dir "bookmarks")
|
||||
- custom-file (concat doom-private-dir "init.el")
|
||||
+ custom-file (concat doom-etc-dir "init.el")
|
||||
custom-theme-directory (concat doom-private-dir "themes/")
|
||||
desktop-dirname (concat doom-etc-dir "desktop")
|
||||
desktop-base-file-name "autosave"
|
Reference in New Issue
Block a user