Permalink
Browse files

defvar the keymap

  • Loading branch information...
1 parent 27ffada commit eee29e08a24e4ac86a25dbd4697f6b76679e0938 @defunkt committed Mar 7, 2010
Showing with 5 additions and 1 deletion.
  1. +5 −1 coffee-mode.el
View
@@ -35,6 +35,9 @@ print the compiled JavaScript.")
(defvar coffee-compiled-buffer-name "*coffee-compiled*"
"The name of the scratch buffer used when compiling CoffeeScript.")
+(defvar coffee-mode-map (make-keymap)
+ "Keymap for CoffeeScript major mode.")
+
;;
;; Commands
;;
@@ -226,7 +229,8 @@ For detail, see `comment-dwim'."
"Major mode for editing CoffeeScript..."
(define-key coffee-mode-map (kbd "A-r") 'coffee-compile-buffer)
-;; (define-key coffee-mode-map (kbd "A-R") 'coffee-execute-line)
+ (define-key coffee-mode-map (kbd "A-R") 'coffee-execute-line)
+ (define-key coffee-mode-map (kbd "A-M-r") 'coffee-repl)
(define-key coffee-mode-map [remap comment-dwim] 'coffee-comment-dwim)
;; code for syntax highlighting

0 comments on commit eee29e0

Please sign in to comment.