diff --git a/emacs.org b/emacs.org index 79f410c..1ea93a2 100644 --- a/emacs.org +++ b/emacs.org @@ -591,6 +591,31 @@ Apparently all the cool kids have moved from auto-complete to Company these days. Should probably look into LSP at the same time. Maybe I'll go without for a bit first... +** Yasnippet + +This is a really nice customisable completion system. For now I am +avoiding external packages full of completions. Let's keep it lean and +personalised. + +#+begin_src elisp + (use-package yasnippet + :hook ((python-mode . yas-minor-mode)) + :config + (yas-recompile-all) + (yas-reload-all) + ) +#+end_src + +*** Snippets +#+begin_src conf :tangle "emacs/.emacs.d/snippets/python-mode/import_numpy" :mkdirp yes +# -*- mode: snippet -*- +# name: import numpy +# key: