diff --git a/gdscript-eglot.el b/gdscript-eglot.el index d07a1d3..3d49e57 100644 --- a/gdscript-eglot.el +++ b/gdscript-eglot.el @@ -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