arnested / drupal-mode

Advanced Emacs minor mode for Drupal development
https://melpa.org/#/drupal-mode
GNU General Public License v3.0
32 stars 14 forks source link

Handle multisites and site aliases #68

Closed joddie closed 8 years ago

joddie commented 8 years ago

This pull request is based on the work in #18 to make drush commands support site aliases. It also allows drupal-mode to work better with multisite installations. (I dislike multisite setups, but sometimes have to deal with them…)

It adds a concept of the "current site", which can be specified either using a site alias or a parameter to --uri. It also refactors all Drush calls so that they go through a standard interface which respects these parameters.

The "current site" setting is common to all buffers within the same project. It should be detected automatically, and can be changed using a command (M-x drupal-set-site) or via the menubar.

This has received only light testing, but it seems to work, so I wanted to open a PR to allow others to potentially test and review it. (Also happy to add more ERT tests, etc.)

arnested commented 8 years ago

This looks very impressive, @joddie! I'll try it out the next couple of days and provide some feedback!