forked from doomemacs/doomemacs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request doomemacs#5142 from sei40kr/java-file-templates
lang/java: Add file templates
- Loading branch information
Showing
5 changed files
with
36 additions
and
1 deletion.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
modules/editor/file-templates/templates/java-mode/__annotation-type
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# -*- mode: snippet -*- | ||
# name: Java annotation type file template | ||
# -- | ||
package `(+java-current-package)`; | ||
|
||
public @interface `(+java-current-class)` | ||
{ | ||
$0 | ||
} |
2 changes: 1 addition & 1 deletion
2
...tor/file-templates/templates/java-mode/__ → ...ile-templates/templates/java-mode/__class
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# -*- mode: snippet -*- | ||
# name: Java enum file template | ||
# -- | ||
package `(+java-current-package)`; | ||
|
||
public enum `(+java-current-class)` | ||
{ | ||
$0 | ||
} |
9 changes: 9 additions & 0 deletions
9
modules/editor/file-templates/templates/java-mode/__interface
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# -*- mode: snippet -*- | ||
# name: Java interface file template | ||
# -- | ||
package `(+java-current-package)`; | ||
|
||
public interface `(+java-current-class)` | ||
{ | ||
$0 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# -*- mode: snippet -*- | ||
# name: Java record file template | ||
# -- | ||
package `(+java-current-package)`; | ||
|
||
public record `(+java-current-class)`($0) $1 | ||
{ | ||
} |