Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 28 lines (21 sloc) 0.716 kb
5fcb34d @technomancy initial commit
authored
1 ;;; starter-kit-ruby.el --- Some helpful Ruby code
2 ;;
3 ;; Part of the Emacs Starter Kit
4
47667cb @technomancy Added some autoloads; updated README.
authored
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
12ac2f0 @technomancy Rearrange lisp and ruby helpers.
authored
10 (eval-after-load 'ruby-mode
11 '(progn
12 (require 'inf-ruby)
13 (require 'ruby-compilation)
5fcb34d @technomancy initial commit
authored
14
12ac2f0 @technomancy Rearrange lisp and ruby helpers.
authored
15 (define-key ruby-mode-map (kbd "RET") 'reindent-then-newline-and-indent)
16 (define-key ruby-mode-map (kbd "C-c l") "lambda")))
5fcb34d @technomancy initial commit
authored
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
23 ;; TODO: set up ri
24 ;; TODO: electric
25 ;; TODO: flymake
26
27 (provide 'starter-kit-ruby)
28 ;; starter-kit-ruby.el ends here
Something went wrong with that request. Please try again.