Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Rename `args` variables to be more consistent.

  • Loading branch information...
commit 3b0962d41f1f0c0c835ae8971700124ed65ddd63 1 parent d063614
@defunkt authored
Showing with 12 additions and 6 deletions.
  1. +8 −2 README.md
  2. +4 −4 coffee-mode.el
View
10 README.md
@@ -205,9 +205,15 @@ Naturally. Example:
;; *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 JS on every save.
+ (add-hook 'before-save-hook 'coffee-compile-file)
+
(add-hook 'coffee-mode-hook '(lambda () (coffee-custom)))
## Configuration
@@ -249,14 +255,14 @@ path.
Default: `"coffee"`
-### coffee-repl-args
+### coffee-args-repl
The command line arguments to pass to `coffee-command' to start a
REPL.
Default: `'("-i")`
-### coffee-command-args
+### coffee-args-compile
The command line arguments to pass to `coffee-command' to get it
toprint the compiled JavaScript.
View
8 coffee-mode.el
@@ -96,12 +96,12 @@ path."
:type 'string
:group 'coffee)
-(defcustom coffee-repl-args '("-i")
+(defcustom coffee-args-repl '("-i")
"The command line arguments to pass to `coffee-command' to start a REPL."
:type 'list
:group 'coffee)
-(defcustom coffee-command-args '("-s" "-p" "--no-wrap")
+(defcustom coffee-args-compile '("-s" "-p" "--no-wrap")
"The command line arguments to pass to `coffee-command' to get it to
print the compiled JavaScript."
:type 'list
@@ -150,7 +150,7 @@ print the compiled JavaScript."
(unless (comint-check-proc "*CoffeeREPL*")
(set-buffer
(apply 'make-comint "CoffeeREPL"
- coffee-command nil coffee-repl-args)))
+ coffee-command nil coffee-args-repl)))
(pop-to-buffer "*CoffeeScript*"))
@@ -303,7 +303,7 @@ For detail, see `comment-dwim'."
(defun coffee-command-full ()
"The full `coffee-command' complete with args."
- (mapconcat 'identity (append (list coffee-command) coffee-command-args) " "))
+ (mapconcat 'identity (append (list coffee-command) coffee-args-compile) " "))
;;
;; imenu support
Please sign in to comment.
Something went wrong with that request. Please try again.