Merge pull request #501 from wishbear/master
don't enable coffee-cos mode if buffer filename is nil
This commit is contained in:
commit
43c4209dee
1 changed files with 3 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue