Skip to content

Commit

Permalink
Add magic autoload comments to misc/*.el.
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42804 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
knu committed Sep 3, 2013
1 parent ef3e223 commit 7df64fd
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions inf-ruby.el
Expand Up @@ -156,6 +156,7 @@
(define-key inferior-ruby-mode-map "\C-c\C-l" 'ruby-load-file)
))

;;;###autoload
(defun inf-ruby-keys ()
"Set local key defs for inf-ruby in ruby-mode"
(define-key ruby-mode-map "\M-\C-x" 'ruby-send-definition)
Expand Down Expand Up @@ -265,6 +266,7 @@ Defaults to a regexp ignoring all inputs of 0, 1, or 2 letters.")
(ruby-args-to-list (substring string pos
(length string)))))))))

;;;###autoload
(defun run-ruby (cmd)
"Run an inferior Ruby process, input and output via buffer *ruby*.
If there is a process already running in `*ruby*', switch to that buffer.
Expand Down
2 changes: 2 additions & 0 deletions rdoc-mode.el
Expand Up @@ -8,6 +8,8 @@
;; License: Ruby's

(require 'derived)

;;;###autoload
(define-derived-mode rdoc-mode text-mode "RDoc"
"Major mode for RD editing.
\\{rdoc-mode-map}"
Expand Down
1 change: 1 addition & 0 deletions ruby-electric.el
Expand Up @@ -93,6 +93,7 @@ inserted. The word 'all' will do all insertions."
closing bracket or not."
:type 'boolean :group 'ruby-electric)

;;;###autoload
(define-minor-mode ruby-electric-mode
"Toggle Ruby Electric minor mode.
With no argument, this command toggles the mode. Non-null prefix
Expand Down
1 change: 1 addition & 0 deletions ruby-style.el
Expand Up @@ -64,6 +64,7 @@
(access-label /)
)))

;;;###autoload
(defun ruby-style-c-mode ()
(interactive)
(if (or (let ((name (buffer-file-name))) (and name (string-match "/ruby\\>" name)))
Expand Down

0 comments on commit 7df64fd

Please sign in to comment.