-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable syntax highlighting for emacs #3
Conversation
I welcome the emacs syntax highlight, but could you either use the single-line syntax which Python 2.x uses for character coding overrides ( Vim only looks within a certain number of lines of the beginning and end of the file (5 by default) and I'd rather not have Vim break unexpectedly some day because someone enhanced the Emacs settings and it grew longer than 4 lines. Also, thanks for giving me the opportunity to remember that I wanted to add an |
From this page, it seems that emacs only recognizes the single line form on the first line of a file. It recognizes the multi-line form as long as it is within 3000 characters of the end of the file, so it should be safe to use that, and put it above the vim modeline. (Stranger things have happened, but it seems unlikely that the vim modeline would balloon to more than 3000 characters.) |
Thanks. Merged. :) |
(Borrowed from casey/boilerplate under "MIT or Apache 2.0" terms as encouraged in issue #3)
I've borrowed your |
Oh, and I did notice one other difference between our approaches. You have a
...to make it as effortless as possible. (That's why I phrased my new |
That's pretty nice, I didn't know that cargo allowed specifying a template like that. |
The feature has been a long time coming, but got merged into nightly on February 1st and I'm now just waiting for it to ride its way down to stable channel so I don't have to futz around with |
Adds a local variable block in the justfile to enable syntax highlighting under emacs.
PS This is a sweet project! I started doing something similar, but yours has many more features. Feel free to cannibalize anything you want from mine. It think the only things that yours is missing that mine has is a simple
.travis.yml
, as well as a bunch of convenience recipes.