greghendershott / racket-mode

Emacs major and minor modes for Racket: edit, REPL, check-syntax, debug, profile, packages, and more.
https://www.racket-mode.com/
GNU General Public License v3.0
682 stars 92 forks source link

Should racket-smart-open-bracket-mode work with racket-hash-lang-mode? #675

Closed sorawee closed 9 months ago

sorawee commented 9 months ago

It currently doesn't work, because of https://github.com/greghendershott/racket-mode/blob/master/racket-smart-open.el#L56.

But does it make sense to add its support anyway, just like what DrRacket does?

greghendershott commented 9 months ago

Yeah, my initial reaction when I was reviewing things was too hasty: I saw the list of racket-lang special form names like cond and match -- as well as the whole paren vs. bracket distinction --- and decided "welp, that's super specific to racket-lang, definitely not generic hash-lang stuff: disable".

But I should relax the guard, so that people may enable it for racket-hash-lang-mode as well as racket-mode, if they want.

One tip here:


TL;DR, I'll: