Merge pull request #501 from wishbear/master

don't enable coffee-cos mode if buffer filename is nil
This commit is contained in:
Bozhidar Batsov 2014-03-26 17:19:57 +02:00
commit 43c4209dee

View file

@ -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)