1. tensorpudding
  2. dotfiles

Commits

Michael  committed 62a58b5

ri for emacs

  • Participants
  • Parent commits 93ca408
  • Branches default

Comments (0)

Files changed (1)

File .emacs.rc

View file
 (when agda-enabled
   (load-file (let ((coding-system-for-read 'utf-8))
 	       (shell-command-to-string "agda-mode locate"))))
+
+;; Loading Ri for Emacs
+(when ri-enabled
+  (setq ri-ruby-script 'ri-ruby-script-path)
+  (autoload 'ri 'ri-ruby-emacs-path nil t)
+  (add-hook 'ruby-mode-hook (lambda()
+			      (local-set-key 'f1 'ri)
+			      (local-set-key "\M-\C-i" 'ri-ruby-complete-symbol)
+			      (local-set-key 'f4 'ri-ruby-show-args)
+			      )))
+