summaryrefslogtreecommitdiff
path: root/.emacs.d/snippets/python-mode.statnett/dec
diff options
context:
space:
mode:
authorSimeon Simeonov2021-01-12 20:05:37 +0100
committerSimeon Simeonov2021-01-12 20:05:37 +0100
commit4996a6403108a226d4ff1d73b880207cc80284bd (patch)
tree4ed642a366a34775d3401228db1f7bb10752b1b4 /.emacs.d/snippets/python-mode.statnett/dec
parent4fbfa5db6d2819f528698b78d15634affdf9b9a9 (diff)
Add snippets/python-mode.statnett
Diffstat (limited to '.emacs.d/snippets/python-mode.statnett/dec')
-rw-r--r--.emacs.d/snippets/python-mode.statnett/dec14
1 files changed, 14 insertions, 0 deletions
diff --git a/.emacs.d/snippets/python-mode.statnett/dec b/.emacs.d/snippets/python-mode.statnett/dec
new file mode 100644
index 0000000..b22c9e9
--- /dev/null
+++ b/.emacs.d/snippets/python-mode.statnett/dec
@@ -0,0 +1,14 @@
1# -*- mode: snippet -*-
2# name: dec
3# key: dec
4# group : definitions
5# --
6def ${1:decorator}(func):
7 $2
8 def _$1(*args, **kwargs):
9 $3
10 ret = func(*args, **kwargs)
11 $4
12 return ret
13
14 return _$1 \ No newline at end of file