[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/toc-org 663e5ec281 116/128: Correct sample configuration t
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/toc-org 663e5ec281 116/128: Correct sample configuration to valid code |
Date: |
Sun, 2 Jan 2022 09:59:15 -0500 (EST) |
branch: elpa/toc-org
commit 663e5ec2810e8eaeca7a58840e76c5a233531d49
Author: Shohei YOSHIDA <syohex@gmail.com>
Commit: Shohei YOSHIDA <syohex@gmail.com>
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 752fe14c5b 042/128: fix "_1_org"-style suffixes, (continued)
- [nongnu] elpa/toc-org 752fe14c5b 042/128: fix "_1_org"-style suffixes, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org 815c6d8c1b 044/128: flatten links when creating raw toc, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org e0cef2c6a1 027/128: print emacs version in travis log, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org 8cf236450b 045/128: don't modify and save file on opening, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org 114dcc9813 053/128: make GitHub hrefs unique (fixes #16), ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org 72883a08b0 049/128: update the TOC only if it's actually different from the current one, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org 4e4b4e6484 057/128: generate correct toc when it's the last heading, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org 4380d99113 065/128: add unit test for #31, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org 970560a874 069/128: fix travis build, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org 39d983c381 074/128: add noexport support, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org 663e5ec281 116/128: Correct sample configuration to valid code,
ELPA Syncer <=
- [nongnu] elpa/toc-org c83c19ddb4 093/128: Merge pull request #59 from snosov1/add-quote, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org 35781c6313 126/128: Merge pull request #82 from skangas/add-license, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org 08ed3f0883 061/128: Merge pull request #30 from snosov1/fix-28, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org 56b48ec37b 033/128: rename to toc-org, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org 11ce8a843f 052/128: strip priorities (fixes #18), ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org a19c3f5f94 091/128: test quote functionality, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org 32975071df 039/128: mention former name in description, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org c662f96040 090/128: add quote functionality, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org 4cd71edc29 082/128: bump emacs25 version, ELPA Syncer, 2022/01/02
- [nongnu] elpa/toc-org 827dc448e0 013/128: push .travis.yml, ELPA Syncer, 2022/01/02