summaryrefslogtreecommitdiff
path: root/.emacs.d/snippets/python-mode
diff options
context:
space:
mode:
Diffstat (limited to '.emacs.d/snippets/python-mode')
-rw-r--r--.emacs.d/snippets/python-mode/.yas-setup.el1
-rw-r--r--.emacs.d/snippets/python-mode/scls7
2 files changed, 8 insertions, 0 deletions
diff --git a/.emacs.d/snippets/python-mode/.yas-setup.el b/.emacs.d/snippets/python-mode/.yas-setup.el
index 3f57d15..cd46717 100644
--- a/.emacs.d/snippets/python-mode/.yas-setup.el
+++ b/.emacs.d/snippets/python-mode/.yas-setup.el
@@ -1,3 +1,4 @@
1(require 'yasnippet)
1(defvar yas-text) 2(defvar yas-text)
2 3
3(defun python-split-args (arg-string) 4(defun python-split-args (arg-string)
diff --git a/.emacs.d/snippets/python-mode/scls b/.emacs.d/snippets/python-mode/scls
new file mode 100644
index 0000000..4a10e28
--- /dev/null
+++ b/.emacs.d/snippets/python-mode/scls
@@ -0,0 +1,7 @@
1# -*- mode: snippet -*-
2# name: subclass
3# key: scls
4# group: object oriented
5# --
6class ${1:class}(${2:super-class}):
7 $0