Going back to <... for Yasnippet expansions
And I need to make these uppercase if I'm going to officially publish a book on the subject.
This commit is contained in:
parent
d4737e5528
commit
2317cc5d37
12 changed files with 35 additions and 33 deletions
|
@ -1,7 +1,7 @@
|
||||||
# -*- mode: snippet -*-
|
# -*- mode: snippet -*-
|
||||||
# name: code-block
|
# name: code-block
|
||||||
# key: #s
|
# key: <s
|
||||||
# --
|
# --
|
||||||
#+begin_src $1
|
#+BEGIN_SRC $1
|
||||||
$0
|
$0
|
||||||
#+end_src
|
#+END_SRC
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# -*- mode: snippet -*-
|
# -*- mode: snippet -*-
|
||||||
# name: emacs-lisp-code
|
# name: emacs-lisp-code
|
||||||
# key: #sl
|
# key: <sl
|
||||||
# --
|
# --
|
||||||
#+begin_src emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
$0
|
$0
|
||||||
#+end_src
|
#+END_SRC
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
# -*- mode: snippet -*-
|
# -*- mode: snippet -*-
|
||||||
# name: emacs-lisp-test
|
# name: emacs-lisp-defun
|
||||||
# key: #elt
|
# key: <slf
|
||||||
# --
|
# --
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(ert-deftest $1-test ()
|
(defun ${1:fun} (${2:args})
|
||||||
(should (= $0)))
|
"${3:docstring}"
|
||||||
|
${4:(interactive${5: "${6:P}"})}
|
||||||
|
$0)
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# key: slv
|
|
||||||
# name: emacs-lisp-defvar
|
# name: emacs-lisp-defvar
|
||||||
|
# key: <slv
|
||||||
# --
|
# --
|
||||||
+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
|
|
@ -1,7 +1,7 @@
|
||||||
# key: #elt
|
|
||||||
# name: emacs-lisp-test
|
# name: emacs-lisp-test
|
||||||
|
# key: <slt
|
||||||
# --
|
# --
|
||||||
#+begin_src emacs-lisp :tangle no
|
#+BEGIN_SRC emacs-lisp :tangle no
|
||||||
(ert-deftest $1-test ()
|
(ert-deftest $1-test ()
|
||||||
(should (= $0)))
|
(should (= $0)))
|
||||||
#+end_src
|
#+END_SRC
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# -*- mode: snippet -*-
|
# -*- mode: snippet -*-
|
||||||
# name: example-block
|
# name: example-block
|
||||||
# key: #e
|
# key: <e
|
||||||
# --
|
# --
|
||||||
#+begin_example
|
#+begin_example
|
||||||
$0
|
$0
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# -*- mode: snippet -*-
|
# -*- mode: snippet -*-
|
||||||
# name: python-src-block
|
# name: python-src-block
|
||||||
# key: #sp
|
# key: <sp
|
||||||
# --
|
# --
|
||||||
#+BEGIN_SRC python
|
#+BEGIN_SRC python
|
||||||
$0
|
$0
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
# key: <h
|
|
||||||
# name: org-mode http client
|
# name: org-mode http client
|
||||||
|
# key: <h
|
||||||
# --
|
# --
|
||||||
#+begin_src http
|
#+begin_src http
|
||||||
${1:GET} https://grafana.dev.wdpharos.io/api/${2:dashboards/uid/klbJ6Rrnk}
|
${1:GET} https://grafana.dev.wdpharos.io/api/${2:dashboards/uid/klbJ6Rrnk}
|
||||||
Authorization: Bearer \$\{auth-key\}
|
Authorization: Bearer \$\{auth-key\}
|
||||||
Content-Type: application/json
|
Content-Type: application/json
|
||||||
$0
|
$0
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# -*- mode: snippet -*-
|
# -*- mode: snippet -*-
|
||||||
# name: name
|
# name: name
|
||||||
# key: #n
|
# key: <n
|
||||||
# --
|
# --
|
||||||
#+NAME: $0
|
#+NAME: $0
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# -*- mode: snippet -*-
|
# -*- mode: snippet -*-
|
||||||
# name: quote-block
|
# name: quote-block
|
||||||
# key: #q
|
# key: <q
|
||||||
# --
|
# --
|
||||||
#+begin_quote
|
#+BEGIN_QUOTE
|
||||||
$0
|
$0
|
||||||
#+end_quote
|
#+END_QUOTE
|
||||||
|
|
|
@ -2,6 +2,6 @@
|
||||||
# name: section-property
|
# name: section-property
|
||||||
# key: prop
|
# key: prop
|
||||||
# --
|
# --
|
||||||
:properties:
|
:PROPERTIES:
|
||||||
:header-args:${1:emacs-lisp} :${2:results} ${3:silent}
|
:HEADER-ARGS:${1:emacs-lisp} :${2:results} ${3:silent}
|
||||||
:end:
|
:END:
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# -*- mode: snippet -*-
|
# -*- mode: snippet -*-
|
||||||
# name: shell-script-code
|
# name: shell-script-code
|
||||||
# key: #ss
|
# key: <ss
|
||||||
# --
|
# --
|
||||||
#+begin_src sh
|
#+BEGIN_SRC sh
|
||||||
$0
|
$0
|
||||||
#+end_src
|
#+END_SRC
|
||||||
|
|
Loading…
Reference in a new issue