Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
defunkt committed Feb 7, 2010
1 parent 17eec4f commit 5d85e58
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions defunkt/custom/aether.el → defunkt/custom/airistotle.el
Expand Up @@ -15,6 +15,7 @@
'(js2-bounce-indent-flag t) '(js2-bounce-indent-flag t)
'(js2-enter-indents-newline t) '(js2-enter-indents-newline t)
'(js2-strict-missing-semi-warning nil) '(js2-strict-missing-semi-warning nil)
'(python-honour-comment-indentation nil)
'(ruby-deep-arglist nil) '(ruby-deep-arglist nil)
'(ruby-deep-indent-paren nil) '(ruby-deep-indent-paren nil)
'(ruby-deep-indent-paren-style nil) '(ruby-deep-indent-paren-style nil)
Expand Down
5 changes: 3 additions & 2 deletions defunkt/javascript.el
Expand Up @@ -17,7 +17,7 @@
(defun js2-execute-line () (defun js2-execute-line ()
(interactive) (interactive)
(save-excursion (save-excursion
(call-process-region (point-at-bol) (call-process-region (point-at-bol)
(point-at-eol) (point-at-eol)
"johnson" "johnson"
nil nil
Expand All @@ -28,8 +28,9 @@
(message (buffer-string)) (message (buffer-string))
(kill-buffer nil)))) (kill-buffer nil))))


(add-hook 'js2-mode-hook (add-hook 'js2-mode-hook
'(lambda () '(lambda ()
(add-hook 'before-save-hook 'delete-trailing-whitespace)
(define-key js2-mode-map (kbd "A-r") 'js2-execute-buffer) (define-key js2-mode-map (kbd "A-r") 'js2-execute-buffer)
(define-key js2-mode-map (kbd "A-R") 'js2-execute-line) (define-key js2-mode-map (kbd "A-R") 'js2-execute-line)
(define-key js2-mode-map "\C-L" 'js2-insert-console) (define-key js2-mode-map "\C-L" 'js2-insert-console)
Expand Down

0 comments on commit 5d85e58

Please sign in to comment.