diff options
| -rw-r--r-- | oni-php/oni-php.el | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/oni-php/oni-php.el b/oni-php/oni-php.el index e4d9693..e5b50e4 100644 --- a/oni-php/oni-php.el +++ b/oni-php/oni-php.el @@ -4,7 +4,7 @@ ;; Author: Tom Willemse <tom@ryuslash.org> ;; Keywords: local -;; Version: 2026.0316.124639 +;; Version: 2026.0316.150229 ;; Package-Requires: (oni-yasnippet oni-flycheck oni-company oni-hydra oni-smartparens ggtags fic-mode company-php rainbow-delimiters rainbow-identifiers) ;; This program is free software; you can redistribute it and/or modify @@ -250,5 +250,12 @@ Do the insert N times." (defun oni-php-in-static-call-context-p () (looking-back "::\\w+" (- (point) (line-beginning-position)))) +;;;###autoload +(when (and (functionp 'treesit-available-p) + (treesit-available-p) + (require 'treesit) + (treesit-ready-p 'php)) + (add-to-list 'major-mode-remap-alist '(php-mode . php-ts-mode))) + (provide 'oni-php) ;;; oni-php.el ends here |
