Skip to content

Commit

Permalink
Fix config directory in gdscript-eglot-contact
Browse files Browse the repository at this point in the history
  • Loading branch information
katomuso committed Nov 3, 2024
1 parent 52b3637 commit e3cb436
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions gdscript-eglot.el
Original file line number Diff line number Diff line change
Expand Up @@ -52,17 +52,17 @@ 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")
(pcase system-type
('darwin "~/Library/Application Support/Godot/")
('windows-nt "%APPDATA%\\Godot\\")
('gnu/linux "~/.config/"))))
(cfg-buffer
(find-file-noselect
(expand-file-name
(format "godot/editor_settings-%s.tres"
gdscript-eglot-version)
cfg-dir)))
(let* ((cfg-dir (if-let ((config-home-dir (getenv "XDG_CONFIG_HOME")))
(file-name-concat config-home-dir "godot")
(pcase system-type
('darwin "~/Library/Application Support/Godot/")
('windows-nt "%APPDATA%\\Godot\\")
('gnu/linux "~/.config/godot/"))))
(cfg-buffer (find-file-noselect
(file-name-concat
cfg-dir
(format "editor_settings-%s.tres"
gdscript-eglot-version))))
(port
(with-current-buffer cfg-buffer
(goto-char 0)
Expand Down

0 comments on commit e3cb436

Please sign in to comment.