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

Send selected text to `drush php-eval` #46

Closed kostajh closed 10 years ago

kostajh commented 10 years ago

I'm new to the Emacs world so I don't think I will be able to contribute this feature myself. However it would be nice if one had the ability to select a block of text and run a command (drush-php-eval) to pipe that text to drush -r DRUPAL_ROOT php-eval, then display the results in a buffer.

arnested commented 10 years ago

Good idea. Thank you.

Added now M-x drupal-drush-php-eval or C-c C-v C-eor via the menu.

Let's see if there is border cases that will fail though :smile:

kostajh commented 10 years ago

Great, thank you for implementing this!

I get an error Unable to load autoload.php. Drush now requires Composer in order to install its depedencies and autoload classes. Please see README.md

I have Drush 6.3.0 installed via Composer -- I'll try adjusting my $PATH to see if that fixes things.

kostajh commented 10 years ago

Yes, it was a problem with my $PATH.

Thanks again for this feature, it is very useful!