Klimi's new dotfiles with stow.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
;;; .yas-setup.el --- Yasnippet helper functions for PHP snippets
|
|
|
|
;;; Commentary:
|
|
|
|
;;; Code:
|
|
(require 'yasnippet)
|
|
|
|
(defun yas-php-get-class-name-by-file-name ()
|
|
"Return name of class-like construct by `file-name'.
|
|
|
|
\"class-like\" contains class, trait and interface."
|
|
(file-name-nondirectory
|
|
(file-name-sans-extension (or (buffer-file-name)
|
|
(buffer-name (current-buffer))))))
|
|
|
|
;;; .yas-setup.el ends here
|