From 88e52188bf5813e742f46767a38ea8234cdc53e5 Mon Sep 17 00:00:00 2001 From: Raimo Niskanen Date: Thu, 18 Aug 2016 11:19:12 +0200 Subject: Include trap_exit in server skeletons --- lib/tools/emacs/erlang-skels.el | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib') 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) -- cgit v1.2.3