[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/toc-org c4c61c5a38 117/128: Merge pull request #73 from sy
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/toc-org c4c61c5a38 117/128: Merge pull request #73 from syohex/correct-sample |
Date: |
Sun, 2 Jan 2022 09:59:15 -0500 (EST) |
branch: elpa/toc-org
commit c4c61c5a382f94a3a4537e254243006dec2dcca4
Merge: aef220c266 663e5ec281
Author: Sergei Nosov <sergei.nosov@gmail.com>
Commit: GitHub <noreply@github.com>
Merge pull request #73 from syohex/correct-sample
Correct sample configuration to valid code
---
README.org | 19 ++++++++++---------
toc-org.el | 11 ++++++-----
2 files changed, 16 insertions(+), 14 deletions(-)
diff --git a/README.org b/README.org
index d47c37eb7d..243bb38671 100644
--- a/README.org
+++ b/README.org
@@ -38,11 +38,12 @@ repository and then put the following snippet in your
~/.emacs file
#+BEGIN_SRC elisp
(if (require 'toc-org nil t)
- (add-hook 'org-mode-hook 'toc-org-mode)
+ (progn
+ (add-hook 'org-mode-hook 'toc-org-mode)
- ;; enable in markdown, too
- (add-hook 'markdown-mode-hook 'toc-org-mode)
- (define-key markdown-mode-map (kbd "\C-c\C-o")
'toc-org-markdown-follow-thing-at-point))
+ ;; enable in markdown, too
+ (add-hook 'markdown-mode-hook 'toc-org-mode)
+ (define-key markdown-mode-map (kbd "\C-c\C-o")
'toc-org-markdown-follow-thing-at-point))
(warn "toc-org not found"))
#+END_SRC
@@ -55,13 +56,13 @@ repository and then put the following snippet in your
~/.emacs file
#+END_SRC
- Put this in your ~/.emacs file
#+BEGIN_SRC elisp
- (add-to-list 'load-path "~/.emacs.d/toc-org")
(if (require 'toc-org nil t)
- (add-hook 'org-mode-hook 'toc-org-mode)
+ (progn
+ (add-hook 'org-mode-hook 'toc-org-mode)
- ;; enable in markdown, too
- (add-hook 'markdown-mode-hook 'toc-org-mode)
- (define-key markdown-mode-map (kbd "\C-c\C-o")
'toc-org-markdown-follow-thing-at-point))
+ ;; enable in markdown, too
+ (add-hook 'markdown-mode-hook 'toc-org-mode)
+ (define-key markdown-mode-map (kbd "\C-c\C-o")
'toc-org-markdown-follow-thing-at-point))
(warn "toc-org not found"))
#+END_SRC
diff --git a/toc-org.el b/toc-org.el
index e2fff1d882..5ca0f010e9 100644
--- a/toc-org.el
+++ b/toc-org.el
@@ -33,11 +33,12 @@
;; After installation put into your .emacs file something like
;; (if (require 'toc-org nil t)
-;; (add-hook 'org-mode-hook 'toc-org-mode)
-
-;; ;; enable in markdown, too
-;; (add-hook 'markdown-mode-hook 'toc-org-mode)
-;; (define-key markdown-mode-map (kbd "\C-c\C-o")
'toc-org-markdown-follow-thing-at-point)
+;; (progn
+;; (add-hook 'org-mode-hook 'toc-org-mode)
+;;
+;; ;; enable in markdown, too
+;; (add-hook 'markdown-mode-hook 'toc-org-mode)
+;; (define-key markdown-mode-map (kbd "\C-c\C-o")
'toc-org-markdown-follow-thing-at-point))
;; (warn "toc-org not found"))
;; And every time you'll be saving an org file, the first headline with a :TOC:
- [nongnu] elpa/toc-org 5a8a3f9b3a 080/128: Merge pull request #42 from snosov1/remove-opening-space, (continued)
- [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
- [nongnu] elpa/toc-org 37f3bf2733 112/128: Add tests for the case-sensitive COMMENT regexp, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org 4d259c9cea 086/128: Merge pull request #51 from snosov1/work-in-derived-modes, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org cd1868787c 087/128: Fix Emacs 26 warning, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org 3315ef6c96 106/128: Merge pull request #66 from snosov1/enable-toc-org-for-markdown, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org 9fefa63d42 119/128: Merge pull request #75 from Alexander-Miller/local-offset, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org 7ff7abb015 029/128: update documentation on org-toc-2 in the source, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org df4ad6ff15 121/128: Merge pull request #76 from snosov1/revert-75-local-offset, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org c4c61c5a38 117/128: Merge pull request #73 from syohex/correct-sample,
ELPA Syncer <=
- [nongnu] elpa/toc-org acca680bc5 098/128: Add somewhat working TOC generation for markdown files, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org 0b759818ee 025/128: fix byte-compilation warning, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org a0fd8ffb8a 047/128: make internal linking work with Org 8.3, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org 7fae24baa9 030/128: revert org-toc-2 documentation changes, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org af1ffb17c2 050/128: Better toc-org-special-chars-regexp, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org 158934fefd 064/128: Merge pull request #31 from azizyemloul/delete-heading-trailing-spaces, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org a0e8ca05e8 066/128: Merge pull request #33 from iqbalansari/master, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org 39fbbda8df 081/128: handle custom keywords specified in the files, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org 8dbb3df422 125/128: Fix byte-compiler warning in Emacs 28, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org a3d953a5fa 076/128: Update and clarify primary docstring to explain :noexport:, etc., ELPA Syncer, 2022/01/02