Configure yasnippet package

This commit is contained in:
Taryel Hlontsi 2023-07-29 16:47:26 +02:00
parent d8ff892f9e
commit 9aa893f17a
3 changed files with 13 additions and 1 deletions

1
.gitignore vendored
View File

@ -2,3 +2,4 @@
!/.gitignore !/.gitignore
!/init.el !/init.el
!/snippets

View File

@ -71,6 +71,12 @@
(pyenv-mode) (pyenv-mode)
(use-package yasnippet
:config
(setq yas-snippet-dirs '("~/.emacs.d/snippets"))
(yas-reload-all)
(add-hook 'prog-mode-hook 'yas-minor-mode))
;; setup dired ;; setup dired
(put 'dired-find-alternate-file 'disabled nil) (put 'dired-find-alternate-file 'disabled nil)

View File

@ -0,0 +1,5 @@
# -*- mode: python -*-
# name: print
# key: p
# --
print(f'$0')