Open Mercerenies opened 1 year ago
What features would be desirable in gdlisp-mode? Experienced with Emacs, but new to Godot. Learning GDScript first before experimenting with GDLisp.
Good question! I'm also a full-time Emacs user; I've just been using Scheme-mode thus far for my own testing, but having a dedicated GDLisp mode would be pretty neat.
I think deriving from Scheme-mode would get us pretty close.
foo:bar
syntax for method calls and field access.defn
, defclass
, defmacro
, etc.project.godot
file. If one doesn't exist, treat current working directory as the project root (this is what GDLisp does internally anyway).(use ...)
directive at the top of the current file, so figuring out what's in scope shouldn't be too bad.Thank you for the detailed response! I will try scheme mode, and if it feels limiting, maybe start experimenting and dogfooding. Great work btw, Lisp + Gamedev is great.
Provide an Emacs mode for GDLisp. The Common Lisp mode we get from our
.lisp
extension works okay (and we could probably derive from it), but we need our own mode that reflects GDLisp's specific keywords.