From cef700b95757631e62f9bebbb4482fa8bc529973 Mon Sep 17 00:00:00 2001 From: Simeon Simeonov Date: Fri, 9 Sep 2016 19:40:27 +0200 Subject: Some snippet customizations for python-mode --- .emacs.d/snippets/python-mode/format | 6 ++++++ .emacs.d/snippets/python-mode/script | 5 +---- .emacs.d/snippets/python-mode/try | 2 +- 3 files changed, 8 insertions(+), 5 deletions(-) create mode 100644 .emacs.d/snippets/python-mode/format (limited to '.emacs.d/snippets/python-mode') diff --git a/.emacs.d/snippets/python-mode/format b/.emacs.d/snippets/python-mode/format new file mode 100644 index 0000000..85c2d6f --- /dev/null +++ b/.emacs.d/snippets/python-mode/format @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: format +# key: sf +# group: object oriented +# -- +.format($0) \ No newline at end of file diff --git a/.emacs.d/snippets/python-mode/script b/.emacs.d/snippets/python-mode/script index e7f8a42..931074a 100644 --- a/.emacs.d/snippets/python-mode/script +++ b/.emacs.d/snippets/python-mode/script @@ -6,8 +6,5 @@ # -*- coding: utf-8 -*- -def main(): - pass - if __name__ == '__main__': - main() + $0 \ No newline at end of file diff --git a/.emacs.d/snippets/python-mode/try b/.emacs.d/snippets/python-mode/try index 8836de6..6e68e8d 100644 --- a/.emacs.d/snippets/python-mode/try +++ b/.emacs.d/snippets/python-mode/try @@ -4,5 +4,5 @@ # -- try: $1 -except ${2:Exception}: +except ${2:Exception} as e: $0 \ No newline at end of file -- cgit v1.3