diff options
| author | 2026-05-05 11:43:43 -0700 | |
|---|---|---|
| committer | 2026-05-05 11:43:43 -0700 | |
| commit | cd8a6afc4b32ac9a72ee65704393a3a09d9d6998 (patch) | |
| tree | fb8f3bc10814bde589e07074ac2bd897f8559cf0 | |
| parent | 44db437bae9e1f4f6a221755305aca85c1a5316c (diff) | |
| download | emacs-config-cd8a6afc4b32ac9a72ee65704393a3a09d9d6998.tar.gz emacs-config-cd8a6afc4b32ac9a72ee65704393a3a09d9d6998.zip | |
oni-php: Add dabbrev setting
| -rw-r--r-- | oni-php/oni-php.el | 7 |
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) |
