跳至主要内容

Emacs

flow-for-emacs

您可以通过使用 flow-for-emacs 在 Emacs 中添加对 Flow 的支持。

要求

  • 需要安装 Flow 并将其添加到您的路径中。
  • 需要使用 flow init 初始化包含 JavaScript 文件的项目。
  • 需要在 JavaScript 文件顶部使用 / @flow / 标记。

安装

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