Hi All,
It would be nice if there was a README file in the “ruby/misc”
directory
on how to apply the emacs .el files to .emacs.
I copied all the .el files into the
/usr/share/emacs/site-list/site-start.d
directory. But I don’t know how to auto load and enable these features
from
.emacs or
from site-start.el. Could someone help me?
;;; ri (ruby interactive documentation)
;;
;; http://rubyforge.org/projects/ri-emacs
;;
(setq ri-ruby-script (expand-file-name
“~/emacs/elisp/ruby-mode/ri-emacs.rb”))
(autoload 'ri “~/emacs/elisp/ruby-mode/ri-ruby.el” nil t)
(load “~/emacs/elisp/ruby-mode/ri-ruby.el”)
;; Bind the ri command to a key.
;; Method/class completion is also available.
(add-hook 'ruby-mode-hook
(lambda ()
(local-set-key “\C-cd” 'ri)
(local-set-key (kbd “”) 'ri-ruby-complete-symbol)
(local-set-key “\C-c\C-a” 'ri-ruby-show-args)
))
On Saturday, August 9, at 00:57, Alex K. wrote:
Hi All,
It would be nice if there was a README file in the “ruby/misc”
directory
on how to apply the emacs .el files to .emacs.
I copied all the .el files into the
/usr/share/emacs/site-list/site-start.d
directory. But I don’t know how to auto load and enable these
features from
.emacs or
from site-start.el. Could someone help me?