A coffee-mode configuration for
- js-mode, js2-mode or js3-mode
You can install
coffee-fof.el from MELPA with package.el
M-x package-install coffee-fof).
corresponding to this file. This command is enabled in
file corresponding to this file. This command is enabled in
Add the following to your Emacs init file:
(require 'coffee-fof) ;; Not necessary if using ELPA package (coffee-fof-setup)
If the .coffee files and .js files are in the same directory, a configuration is not necessary as default value of coffee-fof-search-directories is '(".").
If the .coffee and .js files are in different directories, for example, .js files are in
js directory and .coffee files are in
coffee directory as below,
. ├── coffee │ └── example.coffee └── js └── example.js
(custom-set-variables '(coffee-fof-search-directories '("." "../*")))
If you want to set another key binding, configure as follow.
(coffee-fof-setup :other-key "C-c C-f" :test-key "C-c t")