Skip to content

snippet: add erlang-mode snippets #96

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 16, 2023

Conversation

Benjamin-Philip
Copy link
Contributor

@Benjamin-Philip Benjamin-Philip commented Apr 3, 2023

This commit adds initial support for Erlang snippets. These snippets
have been copied directly from the defaults.

  • erlang-mode/after: Snippet for the after expression
  • erlang-mode/begin: Snippet for the begin expression
  • erlang-mode/beh: Snippet for the behaviour expression
  • erlang-mode/case: Snippet for the case expression
  • erlang-mode/compile: Snippet for the compile expression
  • erlang-mode/def: Snippet for the define expression
  • erlang-mode/exp: Snippet for the export expression
  • erlang-mode/fun: Snippet for the fun expression
  • erlang-mode/if: Snippet for the if expression
  • erlang-mode/ifdef: Snippet for the ifdef expression
  • erlang-mode/ifndef: Snippet for the ifndef expression
  • erlang-mode/imp: Snippet for the import expression
  • erlang-mode/inc: Snippet for the include expression
  • erlang-mode/inc.lib: Snippet for the include_lib expression
  • erlang-mode/loop: Snippet for the loop expression
  • erlang-mode/rcv: Snippet for the recieve expression
  • erlang-mode/rcv.after: Snippet for the receive after expression
  • erlang-mode/rec: Snippet for the record expression
  • erlang-mode/try: Snippet for the try expression
  • erlang-mode/undef: Snippet for the undef expression

Close: #55
Ref: https://github.com/AndreaCrotti/yasnippet-snippets/tree/master/snippets/erlang-mode
Signed-off-by: Benjamin Philip [email protected]


  • I searched the issue tracker and this hasn't been PRed before.
  • My changes are not on the do-not-PR list for this project.
  • My commits conform to the git conventions.
  • My changes are visual; I've included before and after screenshots.
  • I am blindly checking these off.
  • Any relevant issues or PRs have been linked to.
  • This a draft PR; I need more time to finish it.

This commit adds initial support for Erlang snippets. These snippets
have been copied directly from the defaults.

* erlang-mode/after: Snippet for the `after` expression
* erlang-mode/begin: Snippet for the `begin` expression
* erlang-mode/beh: Snippet for the `behaviour` expression
* erlang-mode/case: Snippet for the `case` expression
* erlang-mode/compile: Snippet for the `compile` expression
* erlang-mode/def: Snippet for the `define` expression
* erlang-mode/exp: Snippet for the `export` expression
* erlang-mode/fun: Snippet for the `fun` expression
* erlang-mode/if: Snippet for the `if` expression
* erlang-mode/ifdef: Snippet for the `ifdef` expression
* erlang-mode/ifndef: Snippet for the `ifndef` expression
* erlang-mode/imp: Snippet for the `import` expression
* erlang-mode/inc: Snippet for the `include` expression
* erlang-mode/inc.lib: Snippet for the `include_lib` expression
* erlang-mode/loop: Snippet for the `loop` expression
* erlang-mode/rcv: Snippet for the `recieve` expression
* erlang-mode/rcv.after: Snippet for the `receive after` expression
* erlang-mode/rec: Snippet for the `record` expression
* erlang-mode/try: Snippet for the `try` expression
* erlang-mode/undef: Snippet for the `undef` expression

Close: doomemacs#55
Ref: https://github.com/AndreaCrotti/yasnippet-snippets/tree/master/snippets/erlang-mode
Signed-off-by: Benjamin Philip <[email protected]>
@hlissner hlissner added this to the v2.0 milestone Sep 16, 2023
@hlissner hlissner added is:snippet Requests that a snippet be added or removed and removed mode:snippet labels Sep 16, 2023
@hlissner hlissner merged commit 2f1e268 into doomemacs:master Sep 16, 2023
@hlissner
Copy link
Member

LGTM! Thanks for your help!

@Benjamin-Philip
Copy link
Contributor Author

No problem!

@hlissner hlissner linked an issue Sep 16, 2023 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
is:snippet Requests that a snippet be added or removed mode:erlang
Projects
None yet
Development

Successfully merging this pull request may close these issues.

erlang-mode snippets
2 participants