[Fix #535] Correct coffee-mode's config
This commit is contained in:
parent
5366fdc3ea
commit
d3954749fa
1 changed files with 19 additions and 20 deletions
|
@ -36,32 +36,31 @@
|
||||||
|
|
||||||
(eval-after-load 'coffee-mode
|
(eval-after-load 'coffee-mode
|
||||||
'(progn
|
'(progn
|
||||||
|
;; CoffeeScript uses two spaces.
|
||||||
|
(setq coffee-tab-width 2)
|
||||||
|
|
||||||
|
;; If you don't have js2-mode
|
||||||
|
(setq coffee-js-mode 'javascript-mode)
|
||||||
|
|
||||||
|
;; If you don't want your compiled files to be wrapped
|
||||||
|
(setq coffee-args-compile '("-c" "--bare"))
|
||||||
|
|
||||||
|
;; *Messages* spam
|
||||||
|
(setq coffee-debug-mode t)
|
||||||
|
|
||||||
|
;; Emacs key binding
|
||||||
|
(define-key coffee-mode-map [(meta r)] 'coffee-compile-buffer)
|
||||||
|
|
||||||
|
(setq coffee-command "coffee")
|
||||||
|
|
||||||
(defun prelude-coffee-mode-defaults ()
|
(defun prelude-coffee-mode-defaults ()
|
||||||
"coffee-mode-defaults"
|
"coffee-mode-defaults"
|
||||||
|
|
||||||
;; CoffeeScript uses two spaces.
|
|
||||||
(setq coffee-tab-width 2)
|
|
||||||
|
|
||||||
;; If you don't have js2-mode
|
|
||||||
(setq coffee-js-mode 'javascript-mode)
|
|
||||||
|
|
||||||
;; If you don't want your compiled files to be wrapped
|
|
||||||
(setq coffee-args-compile '("-c" "--bare"))
|
|
||||||
|
|
||||||
;; *Messages* spam
|
|
||||||
(setq coffee-debug-mode t)
|
|
||||||
|
|
||||||
;; Emacs key binding
|
|
||||||
(define-key coffee-mode-map [(meta r)] 'coffee-compile-buffer)
|
|
||||||
|
|
||||||
;; Riding edge.
|
|
||||||
(setq coffee-command "~/dev/coffee")
|
|
||||||
|
|
||||||
;; Compile '.coffee' files on every save
|
;; Compile '.coffee' files on every save
|
||||||
(and (buffer-file-name)
|
(and (buffer-file-name)
|
||||||
(file-exists-p (buffer-file-name))
|
(file-exists-p (buffer-file-name))
|
||||||
(file-exists-p (coffee-compiled-file-name (buffer-file-name)))
|
(file-exists-p (coffee-compiled-file-name (buffer-file-name)))
|
||||||
(coffee-cos-mode t)))
|
(coffee-cos-mode t))
|
||||||
|
(subword-mode +1))
|
||||||
|
|
||||||
(setq prelude-coffee-mode-hook 'prelude-coffee-mode-defaults)
|
(setq prelude-coffee-mode-hook 'prelude-coffee-mode-defaults)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue