Add snippet to add the namespace to a file
This commit is contained in:
parent
ed273e59d2
commit
233c57fc89
1 changed files with 5 additions and 0 deletions
5
oni-php/snippets/php-mode/namespace
Normal file
5
oni-php/snippets/php-mode/namespace
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
# -*- mode: snippet -*-
|
||||||
|
# name: namespace
|
||||||
|
# key: ns
|
||||||
|
# --
|
||||||
|
namespace ${1:`(string-join (mapcar #'capitalize (cdr (split-string (directory-file-name (file-name-directory (file-relative-name buffer-file-name (project-root (project-current))))) "/"))) "\\")`};
|
Loading…
Reference in a new issue