[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/toc-org 2c4ff18a4e 092/128: document quote functionality
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/toc-org 2c4ff18a4e 092/128: document quote functionality |
Date: |
Sun, 2 Jan 2022 09:59:12 -0500 (EST) |
branch: elpa/toc-org
commit 2c4ff18a4ed56395ead1bb2efa0e844e5f954709
Author: Sergei Nosov <sergei.nosov@gmail.com>
Commit: Sergei Nosov <sergei.nosov@gmail.com>
document quote functionality
---
README.org | 12 +++++++++++-
toc-org-test.el | 4 ++--
2 files changed, 13 insertions(+), 3 deletions(-)
diff --git a/README.org b/README.org
index 8897bc68d7..40934e3848 100644
--- a/README.org
+++ b/README.org
@@ -10,7 +10,8 @@ It is similar to the
[[https://github.com/ardumont/markdown-toc][markdown-toc]]
*NOTE:* Previous name of the package is =org-toc=. It was changed because of a
name conflict with one of the org contrib modules.
-* Table of Contents :TOC:
+* Table of Contents
:TOC:QUOTE:
+#+BEGIN_QUOTE
- [[#about][About]]
- [[#installation][Installation]]
- [[#via-packageel][via package.el]]
@@ -18,9 +19,11 @@ name conflict with one of the org contrib modules.
- [[#use][Use]]
- [[#follow-links][Follow links]]
- [[#exclude-headings][Exclude headings]]
+ - [[#quote-table-of-contents][Quote table of contents]]
- [[#shortcut-for-toc-tag][Shortcut for TOC tag]]
- [[#different-href-styles][Different href styles]]
- [[#example][Example]]
+#+END_QUOTE
* Installation
** via package.el
@@ -92,6 +95,13 @@ has a similar meaning in =org-mode=, which I hope is a Good
Thing (tm). However,
=:noexport_1:= and friends won't be recognized by =org-mode= as anything
special. Look at =org-export-exclude-tags= variable for more details.
+** Quote table of contents
+
+For presentation purposes, you might want to put the table of contents in a
+quote block (i.e. =#+BEGIN_QUOTE= / =#+END_QUOTE=). In that case, GitHub, for
+example, will add a vertical line to the left of the TOC that makes it distinct
+from the main text. To do this, just add a =:QUOTE:= tag to the TOC heading.
+
** Shortcut for TOC tag
In your emacs' setup, you can bind a tag =:TOC:= to a binding =T=:
diff --git a/toc-org-test.el b/toc-org-test.el
index 9a51d33b57..a9b34a4157 100644
--- a/toc-org-test.el
+++ b/toc-org-test.el
@@ -222,8 +222,8 @@
"* About\n:TOC:\n drawer\n:END:\n\ntoc-org is a utility to have an
up-to-date table of contents in the\norg files without exporting (useful
primarily for readme files on\nGitHub).\n\nIt is similar to the
[[https://github.com/ardumont/markdown-toc][markdown-toc]] package, but works
for org files.\n:TOC:\n drawer\n:END:\n* Hello\n** Good-bye\n*** Salut\n*
Table of Contents
:TOC_3:QUOTE:\n#+BEGIN_QUOTE\n- [[#about][About]]\n- [[#hell [...]
(test-toc-org-insert-toc-gold-test
- (concat beg ":QUOTE:TOC_3_gh:")
- "* About\n:TOC:\n drawer\n:END:\n\ntoc-org is a utility to have an
up-to-date table of contents in the\norg files without exporting (useful
primarily for readme files on\nGitHub).\n\nIt is similar to the
[[https://github.com/ardumont/markdown-toc][markdown-toc]] package, but works
for org files.\n:TOC:\n drawer\n:END:\n* Hello\n** Good-bye\n*** Salut\n*
Table of Contents
:QUOTE:TOC_3_gh:\n#+BEGIN_QUOTE\n- [[#about][About]]\n- [[#h [...]
+ (concat beg ":QUOTE:hello:TOC_3_gh:")
+ "* About\n:TOC:\n drawer\n:END:\n\ntoc-org is a utility to have an
up-to-date table of contents in the\norg files without exporting (useful
primarily for readme files on\nGitHub).\n\nIt is similar to the
[[https://github.com/ardumont/markdown-toc][markdown-toc]] package, but works
for org files.\n:TOC:\n drawer\n:END:\n* Hello\n** Good-bye\n*** Salut\n*
Table of Contents
:QUOTE:hello:TOC_3_gh:\n#+BEGIN_QUOTE\n- [[#about][About]]\n [...]
(test-toc-org-insert-toc-gold-test
"* H1\n* H2\n* TOC :TOC:\n - [[#header-1][Header 1]]\n -
[[#header-2][Header 2]]\n"
- [nongnu] elpa/toc-org 381abe6c52 032/128: add a renaming note, (continued)
- [nongnu] elpa/toc-org 381abe6c52 032/128: add a renaming note, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org 99195a69fd 036/128: update MELPA badge, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org 14daed1a53 040/128: make C-c C-o work with any href style, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org 3421f6192d 038/128: add a rename note to the commentary, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org f345f768cb 051/128: Merge pull request #13 from JAremko/master, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org ac2c33dcf8 055/128: remove unnecessary spaces, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org 1d52ece078 016/128: another fix to travis badge, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org fdfb7574dc 068/128: fix travis build, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org 40c6754d9f 083/128: replacs string-join with mapconcat, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org 356b3fbb89 101/128: Define fake markdown mode in tests, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org 2c4ff18a4e 092/128: document quote functionality,
ELPA Syncer <=
- [nongnu] elpa/toc-org 4315afd2a4 095/128: fix readme, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org cf4a624b78 122/128: Add license file with GPLv3, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org 2539b4be40 097/128: add test for parenthesis in custom TODO words declaration, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org f13f79737a 020/128: Wrap test call with `(eval-after-load "ert-autoloads"...), ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org e9cf57041a 008/128: fix heading regexp, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org abbcb67166 011/128: allow _ as seprartor, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org ad3424d457 067/128: move tests to a separate file, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org 5a8a3f9b3a 080/128: Merge pull request #42 from snosov1/remove-opening-space, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org aa52bd036d 071/128: handle headlines with COMMENT, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org d30b57f16d 077/128: Merge pull request #40 from alphapapa/update-primary-docstring, ELPA Syncer, 2022/01/02