Add new snippets
This commit is contained in:
parent
4267673853
commit
d4737e5528
4 changed files with 11 additions and 15 deletions
|
@ -2,7 +2,7 @@
|
|||
# name: emacs-lisp-test
|
||||
# key: #elt
|
||||
# --
|
||||
#+begin_src emacs-lisp
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(ert-deftest $1-test ()
|
||||
(should (= $0)))
|
||||
#+end_src
|
||||
#+END_SRC
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# key: slv
|
||||
# name: emacs-lisp-defvar
|
||||
# --
|
||||
+begin_src emacs-lisp
|
||||
+BEGIN_SRC emacs-lisp
|
||||
(defvar ${1:symbol} ${2:initvalue} "${3:docstring}")
|
||||
#+end_src
|
||||
#+END_SRC
|
|
@ -1,11 +1,7 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: header
|
||||
# key: header
|
||||
# name: python-src-block
|
||||
# key: #sp
|
||||
# --
|
||||
#+title: ${1:`(replace-regexp-in-string "-" " " (capitalize (file-name-nondirectory (file-name-sans-extension (buffer-file-name)))))`}
|
||||
#+author: `(user-full-name)`
|
||||
#+email: `user-mail-address`
|
||||
#+date: `(format-time-string "%Y-%m-%d %B")`
|
||||
#+tags: $2
|
||||
|
||||
$0
|
||||
#+BEGIN_SRC python
|
||||
$0
|
||||
#+END_SRC
|
|
@ -1,5 +1,5 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: name
|
||||
# key: name
|
||||
# key: #n
|
||||
# --
|
||||
#+name: ${0}
|
||||
#+NAME: $0
|
Loading…
Reference in a new issue