-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Emacs plugin rewrite #2261
Emacs plugin rewrite #2261
Conversation
Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla - and if you have received this in error or have any questions, please drop us a line at [email protected]. Thanks! |
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks! |
Thanks @afonso360! I'll take a look. Meanwhile I modernized the existing plugin a bit, but didn't go as far as creating a minor-mode. This looks pretty cool. Would be nice to merge these efforts and launch a separate project to maintain the plugin, WDYT? |
Sounds like a good idea, also closes #999 |
yay. the more the merrier. this looks almost identical to the minor-mode we whipped up. but could somebody from facebook, please, please, pretty please open up a repo for this? see #999 |
my current version is here btw: https://github.com/FossiFoo/.emacs.d/blob/master/site-lisp/flowtype-mode/flowtype-mode.el |
We're in the process of creating a repo and inviting contributions. Thanks On Wednesday, August 24, 2016, FossiFoo [email protected] wrote:
|
@afonso360 Could you please share install instructions? I'm using GNU Emacs 24.5.1. For some reason after |
@FossiFoo Could you also please share install instructions so that I can play around? There are a bunch of dependencies. Which version of emacs is your mode built for? |
Add missing string-of-region function and prevent minor mode keybindings from leaking into the regular user map
@avikchaudhuri Yes I was relying on those functions because I didn't want to remove existing functionality, I've pushed a commit that should fix the missing function definitions and prevent the keybindings from leaking. (they were being bound without the prefix). As for install instructions, placing this on the config works, but it enables flow globally, which might not be the best solution.
If you don't want flow enabled globally, replacing global-flow-types-mode with
Will only enable flow-types on the major mode Web-mode. |
Any progress on the repo? I'm not aware of any special things that need to be done or any special emacs version required. I'm currently using 24.5.2 but it also works (maybe with patches?) with spacemacs and aquamacs. All "needed" packages can be fetched from MELPA, but it should run fine without flycheck or company for example. Of course this is so far not polished at all and for my private use, so i didn't clean up for a while. :) |
Sorry for the delay - I'm pinging @avikchaudhuri and seeing what's blocking us from publishing the emacs repository. Thanks for your patience! |
cool. a repo with any start would still be a great thing... :) |
Ok! It's up! Let's all move to https://github.com/flowtype/flow-for-emacs/ ! As for this PR, I'm going to close it out. My apologies again for the delay in getting that repo published! |
can you then please also remove the emacs file from this repo? it's just confusing to have that around if the official source is now elsewhere. |
Instead of defining a few functions and using global-set-key possibly overriding users keybindings, I've created a proper minor mode with local keybindings and prefixes.
I also added company-mode support for autocompletion, it works but some work is still required.
As we init flow servers we keep track of their existance, this is still not used but eventually I would like to have a variable to enforce a flow server before executing each command and the possibility to kill all flow servers tracked by Emacs
Fixes #724 except for flow-types-fill-types