-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
207 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
;;; drupal/eldoc.el --- Drupal-mode support for eldoc.el | ||
|
||
;; Copyright (C) 2015 Arne Jørgensen | ||
|
||
;; Author: Arne Jørgensen <[email protected]> | ||
|
||
;; This file is part of Drupal mode. | ||
|
||
;; Drupal mode is free software; you can redistribute it and/or modify | ||
;; it under the terms of the GNU General Public License as published | ||
;; by the Free Software Foundation, either version 3 of the License, | ||
;; or (at your option) any later version. | ||
|
||
;; Drupal mode is distributed in the hope that it will be useful, but | ||
;; WITHOUT ANY WARRANTY; without even the implied warranty of | ||
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
;; General Public License for more details. | ||
|
||
;; You should have received a copy of the GNU General Public License | ||
;; along with Drupal mode. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
;;; Commentary: | ||
|
||
;; Enable drupal-mode support for eldoc. | ||
|
||
;;; Code: | ||
|
||
(defun drupal/eldoc-enable () | ||
"Enable eldoc in PHP files." | ||
(when (apply 'derived-mode-p drupal-php-modes) | ||
;; Show function arguments from GNU GLOBAL for function at point | ||
;; after a short delay of idle time. | ||
(when (fboundp 'eldoc-mode) | ||
(set (make-local-variable 'eldoc-documentation-function) | ||
#'drupal-eldoc-documentation-function) | ||
(eldoc-mode 1)))) | ||
|
||
(add-hook 'drupal-mode-hook #'drupal/eldoc-enable) | ||
|
||
(when drupal-mode | ||
(drupal/eldoc-enable)) | ||
|
||
|
||
|
||
(provide 'drupal/eldoc) | ||
|
||
;;; drupal/eldoc.el ends here |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
;;; drupal/emacs-drush.el --- Drupal-mode support for Drush utilities for Emacs users | ||
|
||
;; Copyright (C) 2012, 2013 Arne Jørgensen | ||
;; Copyright (C) 2012, 2013, 2015 Arne Jørgensen | ||
|
||
;; Author: Arne Jørgensen <[email protected]> | ||
|
||
|
@@ -32,7 +32,9 @@ | |
;;; Code: | ||
|
||
(defcustom drupal/emacs-drush-update-tags-after-save | ||
(and drupal-drush-program | ||
(and (unless (boundp 'gtags-auto-update) | ||
gtags-auto-update) | ||
drupal-drush-program | ||
(zerop (call-process drupal-drush-program nil nil nil "help" "etags"))) | ||
"Use `Drush utilities for Emacs users' to run etags/gtags after save. | ||
On `after-save-hook' run `drush etags' or `drush gtags'. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters