diff options
| author | 2026-03-16 15:02:47 -0700 | |
|---|---|---|
| committer | 2026-03-16 15:02:47 -0700 | |
| commit | 448b78d47b0a18239f00526772b4a660be01363c (patch) | |
| tree | 08f286a482b159e31b69e793e44700e0c4019d46 /oni-php | |
| parent | 3736b8d1549c93f7f3b774174bf40225c49181a8 (diff) | |
| download | emacs-config-448b78d47b0a18239f00526772b4a660be01363c.tar.gz emacs-config-448b78d47b0a18239f00526772b4a660be01363c.zip | |
oni-php: Add PHP treesitter override
Diffstat (limited to 'oni-php')
| -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 |
