emacs: Switch to tempel for snippets
This commit is contained in:
parent
762ec66b84
commit
bf6179ffe8
9 changed files with 67 additions and 77 deletions
|
@ -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)
|
||||
|
|
|
@ -1,14 +0,0 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: new class
|
||||
# key: class
|
||||
# --
|
||||
class $1:
|
||||
"""
|
||||
$2
|
||||
"""
|
||||
def __init__(self${3:, *args, **kwargs}):
|
||||
"""
|
||||
$4
|
||||
"""
|
||||
${0:pass}
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: new function
|
||||
# key: def
|
||||
# --
|
||||
def $1(${2:*args, **kwargs}):
|
||||
"""
|
||||
$3
|
||||
"""
|
||||
${0:pass}
|
Loading…
Add table
Add a link
Reference in a new issue