fix grammar issue in documentation (ref #1432)

This commit is contained in:
Jethro Kuan
2021-03-06 11:11:47 +08:00
parent cbeaa4d92e
commit dc0357b12e
2 changed files with 10 additions and 21 deletions

View File

@ -483,8 +483,6 @@ Capture:
Navigation:
- Find or create a node
-
* TODO The Org-mode Ecosystem
* TODO Frequently Asked Questions
@ -1162,7 +1160,7 @@ template ~j~ will put its notes under the heading Journal.
Create an entry in the daily note for today.
When ~goto~ is non-nil, go the note without creating an entry.
When ~goto~ is non-nil, go to the note without creating an entry.
- Function: ~org-roam-dailies-find-today~
@ -1558,7 +1556,6 @@ see the list.
# eval: (require 'ol-info)
# eval: (require 'ox-texinfo+ nil t)
# eval: (auto-fill-mode +1)
# before-save-hook: org-make-toc
# after-save-hook: (lambda nil (progn (require 'ox-texinfo nil t) (org-texinfo-export-to-info)))
# indent-tabs-mode: nil
# org-src-preserve-indentation: nil

View File

@ -804,6 +804,14 @@ Ref:
Add ref to node
@end itemize
Capture:
Navigation:
@itemize
@item
Find or create a node
@end itemize
@node The Org-mode Ecosystem
@chapter @strong{TODO} The Org-mode Ecosystem
@ -1659,7 +1667,7 @@ template @code{j} will put its notes under the heading Journal.
Create an entry in the daily note for today.
When @code{goto} is non-nil, go the note without creating an entry.
When @code{goto} is non-nil, go to the note without creating an entry.
@end defun
@defun @code{org-roam-dailies-find-today}
@ -1925,22 +1933,6 @@ using @uref{https://github.com/raxod502/el-patch, el-patch}:
(eval-when-compile
(require 'el-patch))
(use-package deft
;; same as above...
:config/el-patch
(defun deft-parse-title (file contents)
"Parse the given FILE and CONTENTS and determine the title.
If `deft-use-filename-as-title' is nil, the title is taken to
be the first non-empty line of the FILE. Else the base name of the FILE is
used as title."
(el-patch-swap (if deft-use-filename-as-title
(deft-base-filename file)
(let ((begin (string-match "^.+$" contents)))
(if begin
(funcall deft-parse-title-function
(substring contents begin (match-end 0))))))
(org-roam-db--get-title file))))
@end lisp
The Deft interface can slow down quickly when the number of files get huge.