don't enable coffee-cos mode if buffer filename is nil

This commit is contained in:
Andrey Kouznetsov 2014-03-26 21:02:40 +06:00
parent 180d963b25
commit b1854d35cb

View file

@ -58,8 +58,9 @@
(setq coffee-command "~/dev/coffee")
;; Compile '.coffee' files on every save
(and (file-exists-p (buffer-file-name))
(file-exists-p (coffee-compiled-file-name))
(and (buffer-file-name)
(file-exists-p (buffer-file-name))
(file-exists-p (coffee-compiled-file-name (buffer-file-name)))
(coffee-cos-mode t)))
(setq prelude-coffee-mode-hook 'prelude-coffee-mode-defaults)