aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tools/emacs
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tools/emacs')
-rw-r--r--lib/tools/emacs/erlang-skels.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/tools/emacs/erlang-skels.el b/lib/tools/emacs/erlang-skels.el
index 43763d2c8a..0284c9d686 100644
--- a/lib/tools/emacs/erlang-skels.el
+++ b/lib/tools/emacs/erlang-skels.el
@@ -499,6 +499,7 @@ Please see the function `tempo-define-template'.")
"%% {stop, Reason}" n
(erlang-skel-separator-end 2)
"init([]) ->" n>
+ "process_flag(trap_exit, true)," n>
"{ok, #state{}}." n
n
(erlang-skel-separator-start 2)
@@ -742,6 +743,7 @@ Please see the function `tempo-define-template'.")
"%% {stop, StopReason}" n
(erlang-skel-separator-end 2)
"init([]) ->" n>
+ "process_flag(trap_exit, true)," n>
"{ok, state_name, #state{}}." n
n
(erlang-skel-separator-start 2)
@@ -919,6 +921,7 @@ Please see the function `tempo-define-template'.")
"ignore |" n>
"{stop, Reason :: term()}." n
"init([]) ->" n>
+ "process_flag(trap_exit, true)," n>
"{ok, state_name, #data{}}." n
n
(erlang-skel-separator-start 2)
@@ -1029,6 +1032,7 @@ Please see the function `tempo-define-template'.")
"ignore |" n>
"{stop, Reason :: term()}." n
"init([]) ->" n>
+ "process_flag(trap_exit, true)," n>
"{ok, state_name, #data{}}." n
n
(erlang-skel-separator-start 2)