aboutsummaryrefslogtreecommitdiffstats
path: root/oni-php
diff options
context:
space:
mode:
authorGravatar Tom Willemse2026-03-26 14:27:34 -0700
committerGravatar Tom Willemse2026-03-26 14:28:23 -0700
commit63aae99f457c62fab3c1bd6c4237aa321d08fc5d (patch)
tree5fe129f967116ec429fd9523751152bd19f02463 /oni-php
parent417662edb8ccb7d546e74aa24a6facd9d7d85658 (diff)
downloademacs-config-63aae99f457c62fab3c1bd6c4237aa321d08fc5d.tar.gz
emacs-config-63aae99f457c62fab3c1bd6c4237aa321d08fc5d.zip
oni-php: Simplify ‘oni-php-add-use’
Diffstat (limited to 'oni-php')
-rw-r--r--oni-php/oni-php.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/oni-php/oni-php.el b/oni-php/oni-php.el
index d93e40f..0ecf0d5 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.150229
+;; Version: 2026.0326.142641
;; 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
@@ -80,7 +80,7 @@ nil for some reason."
(defun oni-php-add-use (class)
"Try to add a use statement for CLASS under point."
- (interactive (list (symbol-name (symbol-at-point))))
+ (interactive (list (thing-at-point 'symbol)))
(let* ((default-directory (project-root (project-current)))
(classes (read (shell-command-to-string (concat (expand-file-name "find-php-class" oni-php-scripts-dir) " " class))))
(class (cond