jarpy / ks-mode

Kerboscript major mode for Emacs.
MIT License
7 stars 3 forks source link

Defining comment syntax. #2

Closed mkindahl closed 4 years ago

mkindahl commented 7 years ago

Creating buffer-local versions of comment-start, comment-end and comment-start-skip to make sure that M-q (fill-paragraph) and M-; (comment-dwim) works as it should.

mkindahl commented 7 years ago

I added support for the comment syntax since I had problems getting M-; and M-q to work properly. It wrapped lines, but did not add or continue the comment.

mkindahl commented 4 years ago

@jarpy Is this of interest?

jarpy commented 4 years ago

Oh, sure!

I'm so sorry, I think perhaps I wasn't following my own repository!

mkindahl commented 4 years ago

Oh, sure!

I'm so sorry, I think perhaps I wasn't following my own repository!

No worries. :)

Feel free to merge if you think it is OK, or suggest changes if you think some are needed.

jarpy commented 4 years ago

I'm really not an expert, this is the only semi-serious elisp I've done.

Happy to merge if you are happy with it.

mkindahl commented 4 years ago

I'm really not an expert, this is the only semi-serious elisp I've done.

Happy to merge if you are happy with it.

Well, it's not a big change and it works as expected. If it turns out that something could be done better, some more serious elisp expert will fix it. :)