asok / projectile-rails

Emacs Rails mode based on projectile
258 stars 59 forks source link

Need to load this package after projectile? #127

Closed yuzumx closed 6 years ago

yuzumx commented 6 years ago

Hello:

If my projectile is placed in after-init-hook, do I need to put projectile-rails in projectile-mode-hook?

like this:

(add-hook 'projectile-mode-hook
            (lambda () (projectile-rails-global-mode projectilexf-mode)))

The above code is copied from purcell/emacs.d.

Thank you

asok commented 6 years ago

Hi. Since there is a global mode for projectile-rails you should be fine calling projectile-rails-global-mode outside of the projectile-rails-mode-hook. Let me know otherwise.