[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/drupal-mode 6f2b2174fc 233/308: Don't trigger drupal-mode
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/drupal-mode 6f2b2174fc 233/308: Don't trigger drupal-mode in vendor dirs. Closes #57. |
Date: |
Tue, 25 Jan 2022 10:59:50 -0500 (EST) |
branch: elpa/drupal-mode
commit 6f2b2174fc4bbfdeaf0cead102578eaf79acb690
Author: Thomas Fini Hansen <xen@xen.dk>
Commit: Thomas Fini Hansen <xen@xen.dk>
Don't trigger drupal-mode in vendor dirs. Closes #57.
---
drupal-mode.el | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/drupal-mode.el b/drupal-mode.el
index a5a6069bf7..26d17e1466 100644
--- a/drupal-mode.el
+++ b/drupal-mode.el
@@ -845,8 +845,10 @@ The function is suitable for adding to the supported major
modes
mode-hook."
(when (apply 'derived-mode-p (append drupal-php-modes drupal-css-modes
drupal-js-modes drupal-info-modes drupal-other-modes))
(drupal-detect-drupal-version)
- (when (or drupal-version
- (string-match "drush" (or buffer-file-name default-directory)))
+ (when (and
+ (or drupal-version
+ (string-match "drush" (or buffer-file-name default-directory)))
+ (not (string-match "vendor" (or buffer-file-name
default-directory))))
(drupal-mode 1))))
;;;###autoload
- [nongnu] elpa/drupal-mode ca93db3d20 027/308: Only change dictionary to `american' if it exists., (continued)
- [nongnu] elpa/drupal-mode ca93db3d20 027/308: Only change dictionary to `american' if it exists., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode ab0af570f8 095/308: Added .profile to `auto-load-alist' for `php-mode'., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 8d2c52c821 188/308: Prepared for .api.php CoderSniffer sniffs., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 95d6ecdd75 194/308: Bumped version number., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 09c622e53c 199/308: Merge pull request #45 from joddie/skeleton-menu-items, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode dd0016dd41 204/308: Merge branch 'release/0.5.0' into develop, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 56ef6b550c 207/308: Silenced byte-compiler., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 08d1a815ba 208/308: Simplified., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 1627981c94 210/308: Added a `drupal-drush-php-eval`, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 936ca4afcd 219/308: Run flycheck phpcs checker in-place, so info file rules work properly., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 6f2b2174fc 233/308: Don't trigger drupal-mode in vendor dirs. Closes #57.,
ELPA Syncer <=
- [nongnu] elpa/drupal-mode 5b5ab1fb42 235/308: Merge pull request #58 from arnested/ignore-vendor, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 46205ad74c 244/308: Merge branch 'release/0.6.0', ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode cf0364cbaf 248/308: Merge branch 'release/0.6.1', ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode d9745316b3 261/308: Merge pull request #62 from arnested/feature/helm-gtags-compatibility, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 0a23dc084a 266/308: Add autoinsert template for .api.php files, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 947b893b37 274/308: Handle case where `c-default-style` is a string, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode f93cdfe1b2 278/308: Use proper indent for continuation lines, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 9d793aa112 286/308: Add support for gxref/xref, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode dc82e5430c 295/308: Handle .info.yml files, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode a1c77dca8b 300/308: Prefer HTTPS URLs wherever we can, ELPA Syncer, 2022/01/25