From f5f12597373ea266eee0d0946f44a4631b7f1e98 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Mon, 9 Sep 2019 22:37:53 -0700 Subject: Remove Emacs snippets All of these snippets are now distributed with their Emacs configuration. --- emacs/.emacs.d/snippets/python-mode/permission_guard | 9 --------- 1 file changed, 9 deletions(-) delete mode 100644 emacs/.emacs.d/snippets/python-mode/permission_guard (limited to 'emacs/.emacs.d/snippets/python-mode/permission_guard') diff --git a/emacs/.emacs.d/snippets/python-mode/permission_guard b/emacs/.emacs.d/snippets/python-mode/permission_guard deleted file mode 100644 index ab53895..0000000 --- a/emacs/.emacs.d/snippets/python-mode/permission_guard +++ /dev/null @@ -1,9 +0,0 @@ -# -*- mode: snippet -*- -# name: Permission guard -# key: defm -# -- -@method_decorator(permission_required('$1', - raise_exception=True)) -def dispatch(self, *args, **kwargs): - '''Make sure the user has the $1 permission.''' - return super(${3:`(progn (re-search-backward "^[ \t]*class \\(.+\\)(") (match-string 1)))`}, self).dispatch(*args, **kwargs) \ No newline at end of file -- cgit v1.2.3-54-g00ecf