mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Now uses slightly more sophisticated namespace resolution when populating the *.java file template.
10 lines
234 B
EmacsLisp
10 lines
234 B
EmacsLisp
(defun yas-java-project-package ()
|
|
(or (and (eq major-mode 'java-mode)
|
|
(+java-current-package))
|
|
""))
|
|
|
|
(defun yas-java-class-name ()
|
|
(or (and (eq major-mode 'java-mode)
|
|
(+java-current-class))
|
|
""))
|