asok / projectile-rails

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

Persistent options to generate #123

Open bolivier opened 7 years ago

bolivier commented 7 years ago

I almost always want to pass --no-helper and --no-assets by default, but I don't see a way to persist those as default options to generate.

Either something like what magit does wrt rebase or what compile does, persisting the previous command to the minibuffer, would be a nice feature.

asok commented 7 years ago

Hi I was thinking about. Persistig the previous command is the easiest. But in case first invocation was run with spring, and lets say that spring was stop, second invocation of generate will try to use spring again. User would need to remember to delete spring prefix. What about using a buffer local variable that would hold a default generate arguments. You could add this to the .dir-locals.el file via add-dir-local-variable (the mode would be nil). What do you think?