aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tools/emacs/erlang-skels.el
diff options
context:
space:
mode:
authorRaimo Niskanen <[email protected]>2016-08-18 11:19:12 +0200
committerRaimo Niskanen <[email protected]>2016-08-18 11:19:12 +0200
commit88e52188bf5813e742f46767a38ea8234cdc53e5 (patch)
tree53b29c3ca1d486d9de74784b586374ae377272ef /lib/tools/emacs/erlang-skels.el
parent9b1179d8c8c411a245c59fc7092e4a7a98f76663 (diff)
downloadotp-88e52188bf5813e742f46767a38ea8234cdc53e5.tar.gz
otp-88e52188bf5813e742f46767a38ea8234cdc53e5.tar.bz2
otp-88e52188bf5813e742f46767a38ea8234cdc53e5.zip
Include trap_exit in server skeletons
Diffstat (limited to 'lib/tools/emacs/erlang-skels.el')
-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)