- set darwin's eglot config dir

This commit is contained in:
xiliuya
2023-09-22 00:02:31 +08:00
parent 3e2ae19f03
commit 0938403561

View File

@@ -52,7 +52,10 @@ definitions of HOST, PORT, and INTERACTIVE.
For more context, see
https://lists.gnu.org/archive/html/bug-gnu-emacs/2023-04/msg01070.html."
(save-excursion
(let* ((cfg-dir (or (getenv "XDG_CONFIG_HOME") "~/.config"))
(let* ((cfg-dir (or (getenv "XDG_CONFIG_HOME")
(pcase system-type
('darwin "~/Library/Application Support/Godot/")
('gnu/linux "~/.config/"))))
(cfg-buffer
(find-file-noselect
(expand-file-name