emacs: Switch to tempel for snippets

This commit is contained in:
Charlotte Van Petegem 2023-08-01 22:45:23 +02:00
parent 762ec66b84
commit bf6179ffe8
No known key found for this signature in database
GPG key ID: 019E764B7184435A
9 changed files with 67 additions and 77 deletions

View file

@ -46,15 +46,6 @@
)
)
;; Snippets
(use-package yasnippet
;; This is not very nice, but let's just assume that development machines have my nixos-config checked out
:custom (yas-snippet-dirs '("/home/charlotte/repos/nixos-config/modules/development/snippets/"))
:diminish (yas-minor-mode)
:config
(yas-global-mode 1)
)
;; Forth syntax support
(use-package forth-mode
:mode ("\\.fs\\'" . forth-mode)

View file

@ -1,14 +0,0 @@
# -*- mode: snippet -*-
# name: new class
# key: class
# --
class $1:
"""
$2
"""
def __init__(self${3:, *args, **kwargs}):
"""
$4
"""
${0:pass}

View file

@ -1,9 +0,0 @@
# -*- mode: snippet -*-
# name: new function
# key: def
# --
def $1(${2:*args, **kwargs}):
"""
$3
"""
${0:pass}