Emacs
flow-for-emacs
你可以使用 flow-for-emacs 在 Emacs 中添加对 Flow 的支持
¥You can add support for Flow in Emacs by using flow-for-emacs
要求
¥Requirements
需要安装 Flow 并且在你的路径上可用。
¥Requires Flow to be installed and available on your path.
需要使用 flow init 初始化包含 JavaScript 文件的项目。
¥Requires projects containing JavaScript files to be initialised with flow init.
要求 JavaScript 文件在顶部标有 / @flow / 。
¥Requires JavaScript files to be marked with / @flow / at the top.
安装
¥Installation
cd ~/.emacs.d/
git clone https://github.com/flowtype/flow-for-emacs.git
echo -e "\n(load-file \"~/.emacs.d/flow-for-emacs/flow.el\")" >> ~/.emacs