Skip to content

Commit

Permalink
- Using unless to change eglot-server-program
Browse files Browse the repository at this point in the history
  • Loading branch information
xiliuya committed Sep 24, 2023
1 parent 9b26d25 commit a6efb87
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gdscript-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@
;;;###autoload
(with-eval-after-load 'eglot
(defvar eglot-server-programs)
(setq eglot-server-programs
(assq-delete-all 'gdscript-mode eglot-server-programs))
(push (cons 'gdscript-mode #'gdscript-eglot-contact)
eglot-server-programs))
(unless (equal (alist-get 'gdscript-mode eglot-server-programs)
#'gdscript-eglot-contact)
(push (cons 'gdscript-mode #'gdscript-eglot-contact)
eglot-server-programs)))

(defvar gdscript-mode-map (let ((map (make-sparse-keymap)))
;; Movement
Expand Down

0 comments on commit a6efb87

Please sign in to comment.