Add some minor modes for Ruby

This commit is contained in:
Tom Willemse 2015-07-26 22:03:24 +02:00
parent a31e989a28
commit 8adbbed6c5

View file

@ -1257,6 +1257,12 @@ from myaethon2.core.decorators import (
(add-hook 'yas-global-mode-hook 'oni:yas-minor-mode-func)
(add-hook 'ert-results-mode-hook (lambda () (setq truncate-lines nil)))
(add-hook 'ruby-mode-hook (lambda () (setq-local fci-rule-column 80)))
(add-hook 'projectile-mode-hook 'projectile-rails-on)
(add-hook 'ruby-mode-hook 'yard-mode)
(add-hook 'ruby-mode-hook 'eldoc-mode)
(add-hook 'ruby-mode-hook 'ruby-tools-mode)
(add-hook 'ruby-mode-hook 'ruby-refactor-mode-launch)
(add-hook 'ruby-mode-hook 'robe-mode)
(add-hook 'projectile-switch-project-hook #'oni:select-corresponding-ruby)
(oni:add-function-to-hooks #'oni:make-readable