Skip to content
This repository
Newer
Older
100644 38 lines (30 sloc) 1.144 kb
5fcb34d0 »
2008-11-18 initial commit
1 ;;; starter-kit-ruby.el --- Some helpful Ruby code
2 ;;
3 ;; Part of the Emacs Starter Kit
4
47667cb3 »
2008-11-20 Added some autoloads; updated README.
5 ;; Until this makes it into ELPA:
6 (autoload 'ruby-mode "ruby-mode" "" t)
7 (autoload 'inf-ruby "inf-ruby" "" t)
8 (autoload 'run-ruby "inf-ruby" "" t)
9
12ac2f0e »
2008-11-19 Rearrange lisp and ruby helpers.
10 (eval-after-load 'ruby-mode
11 '(progn
12 (require 'inf-ruby)
13 (require 'ruby-compilation)
5fcb34d0 »
2008-11-18 initial commit
14
12ac2f0e »
2008-11-19 Rearrange lisp and ruby helpers.
15 (define-key ruby-mode-map (kbd "RET") 'reindent-then-newline-and-indent)
16 (define-key ruby-mode-map (kbd "C-c l") "lambda")))
5fcb34d0 »
2008-11-18 initial commit
17
18 (global-set-key (kbd "C-h r") 'ri)
19
20 ;; We never want to edit Rubinius bytecode
21 (add-to-list 'completion-ignored-extensions ".rbc")
22
838e8f93 »
2008-11-26 Clear compilation buffer in between test runs.
23 ;; Clear the compilation buffer between test runs.
24 (eval-after-load 'ruby-compilation
25 '(progn
26 (defadvice ruby-do-run-w/compilation (before kill-buffer (name cmdlist))
27 (let ((comp-buffer-name (format "*%s*" name)))
28 (when (get-buffer comp-buffer-name)
29 (with-current-buffer comp-buffer-name
30 (delete-region (point-min) (point-max))))))
31 (ad-activate 'ruby-do-run-w/compilation)))
32
5fcb34d0 »
2008-11-18 initial commit
33 ;; TODO: set up ri
34 ;; TODO: electric
35 ;; TODO: flymake
36
37 (provide 'starter-kit-ruby)
38 ;; starter-kit-ruby.el ends here
Something went wrong with that request. Please try again.