mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
refactor: remove doom-bin-dir
Or rather, moves its into lib/config.el, which is the only place that uses it.
This commit is contained in:
@ -272,12 +272,6 @@ where the module's group and name was deduced from the first and second level of
|
|||||||
directories. For example: if $DOOMDIR/modules/ is an entry, a
|
directories. For example: if $DOOMDIR/modules/ is an entry, a
|
||||||
$DOOMDIR/modules/lang/ruby/ directory represents a ':lang ruby' module.")
|
$DOOMDIR/modules/lang/ruby/ directory represents a ':lang ruby' module.")
|
||||||
|
|
||||||
(defvar doom-bin-dir (expand-file-name "bin/" doom-emacs-dir)
|
|
||||||
"Where Doom's executables are stored.
|
|
||||||
|
|
||||||
Defaults to $EMACSDIR/bin, where $EMACSDIR is `doom-emacs-dir'. Must end in a
|
|
||||||
slash.")
|
|
||||||
|
|
||||||
;; DEPRECATED: .local will be removed entirely in 3.0
|
;; DEPRECATED: .local will be removed entirely in 3.0
|
||||||
(defvar doom-local-dir
|
(defvar doom-local-dir
|
||||||
(if-let* ((localdir (getenv-internal "DOOMLOCALDIR")))
|
(if-let* ((localdir (getenv-internal "DOOMLOCALDIR")))
|
||||||
|
@ -28,7 +28,8 @@
|
|||||||
|
|
||||||
(defmacro doom--if-compile (command on-success &optional on-failure)
|
(defmacro doom--if-compile (command on-success &optional on-failure)
|
||||||
(declare (indent 2))
|
(declare (indent 2))
|
||||||
`(let ((doom-bin "doom")
|
`(let* ((doom-bin "doom")
|
||||||
|
(doom-bin-dir (expand-file-name "bin/" doom-emacs-dir))
|
||||||
(default-directory doom-emacs-dir)
|
(default-directory doom-emacs-dir)
|
||||||
(exec-path (cons doom-bin-dir exec-path)))
|
(exec-path (cons doom-bin-dir exec-path)))
|
||||||
(when (and (featurep :system 'windows)
|
(when (and (featurep :system 'windows)
|
||||||
|
Reference in New Issue
Block a user