From 783a447d50b482683a76e50b7a95ac6b5319e01e Mon Sep 17 00:00:00 2001 From: tastytea Date: Sun, 24 Nov 2019 21:22:32 +0100 Subject: [PATCH] Emacs: Add AsciiDoc-snippet: quote. --- init/text/misc.el | 5 ++++- snippets/adoc-mode/quote | 9 +++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 snippets/adoc-mode/quote diff --git a/init/text/misc.el b/init/text/misc.el index 19b1810..4fc1f89 100644 --- a/init/text/misc.el +++ b/init/text/misc.el @@ -1,6 +1,6 @@ ;;; misc.el --- Miscellaneous file formats. -*- lexical-binding: t; -*- -;; Time-stamp: <2019-11-20T17:28:16+00:00> +;; Time-stamp: <2019-11-24T20:22:08+00:00> ;;; Commentary: @@ -54,6 +54,8 @@ ) (use-package adoc-mode + :after (yasnippet) + :custom-face ;; Style headers. (markup-title-0-face ((t (:inherit markup-gen-face :height 1.4 @@ -88,6 +90,7 @@ "8/:[dD[aA][tT][eE]: +%:y-%02m-%02d\n") ;; (setq-local time-stamp-time-zone nil) ; Set to local TZ. )) + (adoc-mode . yas-minor-mode) ; Enable yasnippets. ) (use-package markdown-mode diff --git a/snippets/adoc-mode/quote b/snippets/adoc-mode/quote new file mode 100644 index 0000000..3ea84e3 --- /dev/null +++ b/snippets/adoc-mode/quote @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: quote +# key: quote +# -- +[quote, attribution = $1] +[quote, citetitle = $2] +____ +$3footnote:[$4] +____ \ No newline at end of file