mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Make bin/doom work when it's symlinked
This commit is contained in:
2
bin/doom
2
bin/doom
@ -41,7 +41,7 @@
|
|||||||
;;
|
;;
|
||||||
(let ((args (cdr (cdr (cdr command-line-args))))
|
(let ((args (cdr (cdr (cdr command-line-args))))
|
||||||
(emacs-dir (or (getenv "EMACSDIR")
|
(emacs-dir (or (getenv "EMACSDIR")
|
||||||
(expand-file-name "../" (file-name-directory load-file-name)))))
|
(expand-file-name "../" (file-name-directory (file-truename load-file-name))))))
|
||||||
;; Parse options
|
;; Parse options
|
||||||
(while (ignore-errors (string-prefix-p "-" (car args)))
|
(while (ignore-errors (string-prefix-p "-" (car args)))
|
||||||
(pcase (pop args)
|
(pcase (pop args)
|
||||||
|
Reference in New Issue
Block a user