diff options
| author | 2026-04-07 09:15:36 -0700 | |
|---|---|---|
| committer | 2026-04-07 09:15:36 -0700 | |
| commit | 6c68d871fbbb9bd2c270fc5cb162c8be58666736 (patch) | |
| tree | 648b49be1bc8782f54d20b48549aeee8972bfed7 /oni-php/snippets | |
| parent | f054cce03bafd2104f72cd1bdeeaa19e28b888f3 (diff) | |
| download | emacs-config-6c68d871fbbb9bd2c270fc5cb162c8be58666736.tar.gz emacs-config-6c68d871fbbb9bd2c270fc5cb162c8be58666736.zip | |
oni-php: Add auto-insert template for .php files
Diffstat (limited to 'oni-php/snippets')
| -rw-r--r-- | oni-php/snippets/php-mode/namespace | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/oni-php/snippets/php-mode/namespace b/oni-php/snippets/php-mode/namespace index 01abd02..7a5b5e1 100644 --- a/oni-php/snippets/php-mode/namespace +++ b/oni-php/snippets/php-mode/namespace @@ -2,8 +2,4 @@ # name: namespace # key: ns # -- -namespace ${1:`(string-join - (mapcar - (lambda (s) (let ((case-fold-search nil)) (if (string-match-p (rx upper-case) s) s (capitalize s)))) - (cdr (split-string (directory-file-name (file-name-directory (file-relative-name buffer-file-name (project-root (project-current))))) "/"))) - "\\")`};
\ No newline at end of file +namespace ${1:`(oni-php-generate-namespace)`};
\ No newline at end of file |
