mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-07 12:47:30 -05:00
tweak(gdscript): open godot log buffers in popup
Includes an advice to prevent the log buffer from being focused. This way, the user can return to their work faster when in their play-debug loop, as well as kill the game/Godot by killing the log buffer remotely (with its process) with C-g/ESC.
This commit is contained in:
@ -13,6 +13,12 @@
|
||||
(set-lookup-handlers! 'gdscript-mode
|
||||
:documentation '(gdscript-docs-browse-symbol-at-point :async t))
|
||||
(set-formatter! 'gdformat '("gdformat" "-") :modes '(gdscript-mode))
|
||||
(set-popup-rule! "^\\*godot " :ttl 0 :quit t)
|
||||
|
||||
(defadvice! +gdscript--dont-focus-output-buffer-a (fn &rest args)
|
||||
"Don't move cursor into gdscript compilation window."
|
||||
:around #'gdscript-comint--run
|
||||
(save-selected-window (apply fn args)))
|
||||
|
||||
;; eww is clumsy and slow. Best that `gdscript-docs-browse-symbol-at-point'
|
||||
;; simply use the browser.
|
||||
|
Reference in New Issue
Block a user