Skip to content

Commit 444b826

Browse files
committed
13 yasnippet
1 parent fdf8b7b commit 444b826

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed

myinit.org

+14
Original file line numberDiff line numberDiff line change
@@ -143,5 +143,19 @@
143143
:init
144144
(add-hook 'python-mode-hook 'jedi:setup)
145145
(add-hook 'python-mode-hook 'jedi:ac-setup))
146+
147+
148+
(use-package elpy
149+
:ensure t
150+
:config
151+
(elpy-enable))
152+
153+
#+END_SRC
154+
* Yasnippet
155+
#+BEGIN_SRC emacs-lisp
156+
(use-package yasnippet
157+
:ensure t
158+
:init
159+
(yas-global-mode 1))
146160

147161
#+END_SRC

samples/python/test.py

+15-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,24 @@
11
import random
22

33
def f(x):
4-
return random.randrange(1,x)
4+
return random.randrange(1, x)
55

66

77
for i in range(2,10):
88
print f(i)
99

1010

11+
12+
if __name__ == '__main__':
13+
hello
14+
15+
16+
class myclass(somethingelse):
17+
"""documentation
18+
19+
"""
20+
def __init__(self, some_args):
21+
super(myclass, self).__init__()
22+
self.some_args = some_args
23+
24+

0 commit comments

Comments
 (0)