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.

16 lines
446 B

5 years ago
  1. ;;; .yas-setup.el --- Yasnippet helper functions for PHP snippets
  2. ;;; Commentary:
  3. ;;; Code:
  4. (require 'yasnippet)
  5. (defun yas-php-get-class-name-by-file-name ()
  6. "Return name of class-like construct by `file-name'.
  7. \"class-like\" contains class, trait and interface."
  8. (file-name-nondirectory
  9. (file-name-sans-extension (or (buffer-file-name)
  10. (buffer-name (current-buffer))))))
  11. ;;; .yas-setup.el ends here