Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Facilitate easier configuration for emacs and vim users in one team #26

Open
keithpitty opened this issue Feb 26, 2015 · 2 comments
Open

Comments

@keithpitty
Copy link

We have both emacs and vim users in our team. It would be nice to enable us to have guard-ctags-bundler set up in the Guardfile in such a way that we can derive whether or not :emacs is true based on a a dot file (e.g. .guard-ctags-bundler) that specifies the value of :emacs.

@ivalkeen
Copy link
Owner

Thanks for the suggestion, I think it's a good idea, I will think about it.

For now you can use environment variables. Something like this should work:

guard 'ctags-bundler', :emacs => ENV['EDITOR'] == 'emacs', :src_path => ["app", "lib", "spec/support"] do
  watch(/^(app|lib|spec\/support)\/.*\.rb$/)
  watch('Gemfile.lock')
end

@keithpitty
Copy link
Author

Ah, thanks. That's a good idea. We'll give it a shot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants