aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--oni-php/oni-php.el7
1 files changed, 6 insertions, 1 deletions
diff --git a/oni-php/oni-php.el b/oni-php/oni-php.el
index e895c3b..e591983 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.0407.170526
+;; Version: 2026.0501.153153
;; 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
@@ -193,6 +193,10 @@ Otherwise call FUNC with ARGS. This is meant as advice around
"/")))
"\\"))
+(defun oni-php-set-dabbrev-settings ()
+ "Set any settings for dabbrev that make sense for PHP code."
+ (setq-local dabbrev-abbrev-skip-leading-regexp (rx "$")))
+
(defhydra php-mode-hydra (:color blue)
("a" align-current "Align current selection"))
@@ -207,6 +211,7 @@ Otherwise call FUNC with ARGS. This is meant as advice around
(add-hook 'php-mode-hook 'flycheck-mode)
(add-hook 'php-mode-hook 'ggtags-mode)
(add-hook 'php-mode-hook 'oni-php--auto-fill-mode)
+(add-hook 'php-mode-hook 'oni-php-set-dabbrev-settings)
(add-hook 'php-mode-hook 'oni-php-set-rainbow-identifier-faces)
(add-hook 'php-mode-hook 'rainbow-delimiters-mode)
(add-hook 'php-mode-hook 'rainbow-identifiers-mode)