Skip to content

Instantly share code, notes, and snippets.

@takaxp
Created May 19, 2018 08:04
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save takaxp/4fb109c2dcc67b8d8de4914760977674 to your computer and use it in GitHub Desktop.
Save takaxp/4fb109c2dcc67b8d8de4914760977674 to your computer and use it in GitHub Desktop.
An example setting for org-tempo.el
(when (version< "9.1.4" (org-version))
(add-to-list 'org-modules 'org-tempo))
(add-to-list 'org-structure-template-alist
(if (version< "9.1.4" (org-version))
'(?S . "src emacs-lisp")
'("S" "#+BEGIN_SRC emacs-lisp\n?\n#+END_SRC" "<src lang=\"emacs-lisp\">\n\n</src>")))
@BlindingDark
Copy link

'(?S . "src emacs-lisp") --> '("S" . "src emacs-lisp")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment