diff --git a/oni-php/snippets/php-mode/namespace b/oni-php/snippets/php-mode/namespace new file mode 100644 index 0000000..a63d713 --- /dev/null +++ b/oni-php/snippets/php-mode/namespace @@ -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))))) "/"))) "\\")`}; \ No newline at end of file