[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/drupal-mode 11bfbda293 217/308: Added drupal-mode to dired
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/drupal-mode 11bfbda293 217/308: Added drupal-mode to dired buffers. |
Date: |
Tue, 25 Jan 2022 10:59:49 -0500 (EST) |
branch: elpa/drupal-mode
commit 11bfbda293188dba7b7b1ee71926b8b8ddbfbe40
Author: Arne Jørgensen <arne@arnested.dk>
Commit: Arne Jørgensen <arne@arnested.dk>
Added drupal-mode to dired buffers.
---
drupal-mode.el | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/drupal-mode.el b/drupal-mode.el
index 7229c12f7b..ee9b6939b5 100644
--- a/drupal-mode.el
+++ b/drupal-mode.el
@@ -164,6 +164,12 @@ Include path to the executable if it is not in your $PATH."
:type '(repeat symbol)
:group 'drupal)
+;;;###autoload
+(defcustom drupal-other-modes (list 'dired-mode)
+ "Other major modes that should enable Drupal mode."
+ :type '(repeat symbol)
+ :group 'drupal)
+
(defcustom drupal-enable-auto-fill-mode t
"Whether to use `auto-fill-mode' in Drupal PHP buffers.
Drupal mode will only do auto fill in comments (auto filling code
@@ -727,7 +733,7 @@ the location of DRUPAL_ROOT."
(defun drupal-hack-local-variables ()
"Drupal hack `drupal-local-variables' as buffer local variables."
(interactive)
- (let ((dir (expand-file-name (or (file-name-directory buffer-file-name)
default-directory)))
+ (let ((dir (expand-file-name (file-name-directory (or buffer-file-name
default-directory))))
matches)
(maphash (lambda (key value)
(when (string-match (concat "^" (regexp-quote key)) dir)
@@ -833,14 +839,14 @@ is a mode supported by `drupal-mode' (currently only
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))
+ (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)))
(drupal-mode 1))))
;;;###autoload
-(dolist (mode (append drupal-php-modes drupal-css-modes drupal-js-modes
drupal-info-modes))
+(dolist (mode (append drupal-php-modes drupal-css-modes drupal-js-modes
drupal-info-modes drupal-other-modes))
(when (intern (concat (symbol-name mode) "-hook"))
(add-hook (intern (concat (symbol-name mode) "-hook"))
#'drupal-mode-bootstrap)))
- [nongnu] elpa/drupal-mode 5eb72aba82 162/308: Merge branch 'release/0.3.1' into develop, (continued)
- [nongnu] elpa/drupal-mode 5eb72aba82 162/308: Merge branch 'release/0.3.1' into develop, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 0eac30704b 167/308: Don't delete `'trailing` form `whitespace-style` after all., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 3c32d7e938 169/308: `flycheck-declare-checker` is now `flycheck-define-checker`, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 3cf6d3a8a9 173/308: Updated phpcs patterns to new flycheck format., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode a4768c704e 178/308: Fixed namespace of custom variable., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 5ac9531321 177/308: Added default to run flymake in place., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode b2ba37e71a 180/308: Bumped version to 0.4.0., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 65efa5b78a 186/308: Removed usage of directory local variables., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 13b2fff6ef 196/308: Use flycheck-add-next-checker., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 507da75f31 212/308: Use `special-mode` for drush php-eval output., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 11bfbda293 217/308: Added drupal-mode to dired buffers.,
ELPA Syncer <=
- [nongnu] elpa/drupal-mode ce9d3a564f 215/308: Fixed regexp., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 75e1d2dccc 230/308: Require dependency., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 20c4d561bc 245/308: Merge branch 'release/0.6.0' into develop, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode d03a71c891 247/308: Bump version number to 0.6.1., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode bdf3709e10 253/308: Fix bug in drupal/etags-get-function-args, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 708f318b12 254/308: Merge pull request #64 from joddie/fix/etags-moves-point, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode b59ad24b6e 258/308: Merge pull request #66 from joddie/fix/etags-hook-skeleton, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 72c533c619 256/308: Remove redundant `require` calls, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode de52d2757c 260/308: Added Travis CU config., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode b4a66092bd 263/308: Removed git snapshot from travis ci., ELPA Syncer, 2022/01/25