[人们总说,要忠实于自己。但这其实是误导人的。因为有两种自己,一个是短期的自己,一个是长期的自己。如果你只忠实于短期的自己,那长期的那个自己就会慢慢消逝。]
emacs下配置coffee的环境,首先需要找coffee-mode,github上的开源地址:https://github.com/defunkt/coffee-mode
(1) 找到coffee-mode并下载到emacs配置文件夹
cd ~/.emacs.d/
git clone https://github.com/defunkt/coffee-mode.git
(2) 修改配置文件,在~/.emacs文件中加入下面lisp语句
;;coffee-mode
(add-to-list 'load-path "~/.emacs.d/coffee-mode")
(require 'coffee-mode)
(3) 自动补齐加入coffee-mode
上面的步骤完成后,基本的配置中还缺少自动补齐,进入补齐配置文件夹
cd ~/.emacs.d/config/autocomplete
打开auto-complete.el文件,找到defcustom ac-modes部分,增加coffee-mode
然后对文件进行字节编译 M-x byte-compile-file
此时,会生成新的elc文件,自动补齐配置完成
其余请参考:https://github.com/defunkt/coffee-mode