Skip to content

Commit d9e2137

Browse files
committed
Use auto-revert-mode and auto-load.
1 parent 91cd3f9 commit d9e2137

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drupal-mode.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,6 +488,7 @@ should save your files with unix style end of line."
488488
(format-spec drupal-search-url `((?v . ,(drupal-major-version drupal-version))
489489
(?s . ,symbol)))))))))
490490

491+
;;;###autoload
491492
(defun drupal-tail-drupal-debug-txt ()
492493
"Tail drupal_debug.txt.
493494
If a drupal_debug.txt exists in the sites temporary directory
@@ -506,7 +507,7 @@ buffer."
506507
(dd (concat tmp "/drupal_debug.txt")))
507508
(when (file-readable-p dd)
508509
(find-file-other-window dd)
509-
(auto-revert-tail-mode 1)))))
510+
(auto-revert-mode 1)))))
510511

511512
(defun drupal-wrap-string-in-t-function ()
512513
"If point is inside a string wrap the string in the t() function."

0 commit comments

Comments
 (0)