[人們總說,要忠實於自己。但這其實是誤導人的。因爲有兩種自己,一個是短期的自己,一個是長期的自己。如果你只忠實於短期的自己,那長期的那個自己就會慢慢消逝。]
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