don't enable coffee-cos mode if buffer filename is nil
This commit is contained in:
parent
180d963b25
commit
b1854d35cb
1 changed files with 3 additions and 2 deletions
|
@ -58,8 +58,9 @@
|
||||||
(setq coffee-command "~/dev/coffee")
|
(setq coffee-command "~/dev/coffee")
|
||||||
|
|
||||||
;; Compile '.coffee' files on every save
|
;; Compile '.coffee' files on every save
|
||||||
(and (file-exists-p (buffer-file-name))
|
(and (buffer-file-name)
|
||||||
(file-exists-p (coffee-compiled-file-name))
|
(file-exists-p (buffer-file-name))
|
||||||
|
(file-exists-p (coffee-compiled-file-name (buffer-file-name)))
|
||||||
(coffee-cos-mode t)))
|
(coffee-cos-mode t)))
|
||||||
|
|
||||||
(setq prelude-coffee-mode-hook 'prelude-coffee-mode-defaults)
|
(setq prelude-coffee-mode-hook 'prelude-coffee-mode-defaults)
|
||||||
|
|
Loading…
Reference in a new issue