Add new snippets

This commit is contained in:
Howard Abrams 2024-08-11 21:04:53 -07:00
parent 4267673853
commit d4737e5528
4 changed files with 11 additions and 15 deletions

View file

@ -2,7 +2,7 @@
# name: emacs-lisp-test # name: emacs-lisp-test
# key: #elt # key: #elt
# -- # --
#+begin_src emacs-lisp #+BEGIN_SRC emacs-lisp
(ert-deftest $1-test () (ert-deftest $1-test ()
(should (= $0))) (should (= $0)))
#+end_src #+END_SRC

View file

@ -1,6 +1,6 @@
# key: slv # key: slv
# name: emacs-lisp-defvar # name: emacs-lisp-defvar
# -- # --
+begin_src emacs-lisp +BEGIN_SRC emacs-lisp
(defvar ${1:symbol} ${2:initvalue} "${3:docstring}") (defvar ${1:symbol} ${2:initvalue} "${3:docstring}")
#+end_src #+END_SRC

View file

@ -1,11 +1,7 @@
# -*- mode: snippet -*- # -*- mode: snippet -*-
# name: header # name: python-src-block
# key: header # key: #sp
# -- # --
#+title: ${1:`(replace-regexp-in-string "-" " " (capitalize (file-name-nondirectory (file-name-sans-extension (buffer-file-name)))))`} #+BEGIN_SRC python
#+author: `(user-full-name)` $0
#+email: `user-mail-address` #+END_SRC
#+date: `(format-time-string "%Y-%m-%d %B")`
#+tags: $2
$0

View file

@ -1,5 +1,5 @@
# -*- mode: snippet -*- # -*- mode: snippet -*-
# name: name # name: name
# key: name # key: #n
# -- # --
#+name: ${0} #+NAME: $0