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

`drupal-detect-drupal-version' also outside full projects #11

Closed arnested closed 12 years ago

arnested commented 12 years ago

drupal-detect-drupal-version' will only detect adrupal-version' and go into `drupal-mode' if the visited file is part of a full Drupal project.

It should also detect i.e. files that are just part of a module or theme (if i.e. you have only made git clone of a single module).

I guess the will be useful to developers that not only work on building sites but also developers who are i.e. module maintainers.

`drupal-version' can be detected from module.info file.

`drupal-root' should be set to nil.

Maybe also set a `drupal-module-name' on the module folder - this could also be done in full projects and be helpful for other functions.