Skip to content
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

Modeline support? #12

Open
ev0rtex opened this issue Apr 10, 2017 · 5 comments
Open

Modeline support? #12

ev0rtex opened this issue Apr 10, 2017 · 5 comments
Milestone

Comments

@ev0rtex
Copy link

ev0rtex commented Apr 10, 2017

Is modeline support planned for implementation in Six? I really like being able to specify my syntax in a modeline on a per-file basis like I could before with Vintageous. If development of this feature is being worked on I'd also like to say that it would be awesome if it would pick out the syntax from a standard # vi set ft=python : type of modeline.

I have typically had comments such as this in a lot of my files:

# -*- mode: python -*-
# vi: set ft=python :
# sublime: x_syntax Packages/Python/Python.sublime-syntax

...it would be awesome if I could remove that last line so that I only have to worry about Emacs and Vim modelines. For now I ended up installing the Emacs-like Modelines plugin which works well with what I already have in my modelines. Ultimately I'd like to be able to remove that plugin and have support in Six.

@guillermooo
Copy link
Owner

Likely, but not a priority right now.

@guillermooo guillermooo added this to the Maybe later milestone Apr 11, 2017
@ev0rtex
Copy link
Author

ev0rtex commented Apr 11, 2017

Okay, thanks for responding. I wish I could help ;)

@guillermooo
Copy link
Owner

Probably you'll be able to. I think that kind of functionality would be best implemented as a plugin. In this case, you would simply need to (1) be notified on buffer load and (2) have the ability to mutate settings. Proper support for handling settings from Six isn't coming soon, but a basic api for plugins like modelines may be easier to release faster.

@ev0rtex
Copy link
Author

ev0rtex commented Apr 11, 2017

That would be awesome! When you get a basic plugin API in place I'll work on building this.

I imagine that plugins like this would just be contributed as separate packages that could potentially be installed via Package Control, right?

@guillermooo
Copy link
Owner

Yes, but there would probably be a Six_Plugin_Core package that would be a dependency. Modelines would be included in it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants