We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb21f8a commit 6f2b217Copy full SHA for 6f2b217
drupal-mode.el
@@ -845,8 +845,10 @@ The function is suitable for adding to the supported major modes
845
mode-hook."
846
(when (apply 'derived-mode-p (append drupal-php-modes drupal-css-modes drupal-js-modes drupal-info-modes drupal-other-modes))
847
(drupal-detect-drupal-version)
848
- (when (or drupal-version
849
- (string-match "drush" (or buffer-file-name default-directory)))
+ (when (and
+ (or drupal-version
850
+ (string-match "drush" (or buffer-file-name default-directory)))
851
+ (not (string-match "vendor" (or buffer-file-name default-directory))))
852
(drupal-mode 1))))
853
854
;;;###autoload
0 commit comments