File: .yas-setup.el

package info (click to toggle)
yasnippet-snippets 0.9-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 6,360 kB
  • sloc: lisp: 98; sh: 13; ada: 4; makefile: 2
file content (16 lines) | stat: -rw-r--r-- 446 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
;;; .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