Skip to content

Commit f60e134

Browse files
committed
doc: README Getting Started with Install and Configuration
1 parent 2e8a92e commit f60e134

File tree

1 file changed

+58
-5
lines changed

1 file changed

+58
-5
lines changed

README.md

Lines changed: 58 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,73 @@ for your Zettelkasten-style note-taking and backlinks.
1111

1212
2. `#tag` support to categorize notes
1313

14-
3. Specify notes as reference materials (literature notes / bibliographic notes) with `roam_refs:`
14+
3. Note as a reference material (literature notes or notes on website) with `roam_refs:`
1515

16-
4. Aliases of a note with `roam_aliases:` in the YAML array syntax with `["alias1", "alias two" ]`
16+
4. Aliases of a note with `roam_aliases:` in the YAML array syntax with `["alias1", "alias two"]`
1717

18-
5. Link notes for backlinks with using `[[wiki-link]]` syntax and "in-line search" with `Company` or `Corfu`; the name is the **title** of a note
18+
5. Link with `[[wiki-link]]` syntax that appears as a backlink and "in-line search" with `Company` or `Corfu`; you can use the **title** or an **alias** of a note
1919

2020
6. Citations with Pandoc style `[@citekey]`, `@citekey` `-@citekey`, etc. for Markdown files; for Org, Org-ref or Org-cite styles as Org-roam support them
2121

22-
7. Both Markdown and Org notes can cite a reference; they appear in the reflink section
22+
7. Markdown and Org citations for reference materials; they appear in the reflink section
2323

24-
8. Create backlinks between Org and Markdown files both ways; you can mix both formats in a single Org-roam database
24+
8. Backlinks between Org and Markdown files both ways; you can mix both formats in a single Org-roam database
2525

2626
9. Org-roam standard backlink buffer with no modification to the database schema and backlink buffer
2727

28+
# Getting Started
29+
30+
## Installation
31+
32+
This package is not available on MELPA or ELPA. Manual installation is required.
33+
34+
Download or clone this repo, put the `.el` file into your load-path, and put
35+
something like this in your init file.
36+
37+
```emacs-lisp
38+
(add-to-list 'load-path "path/to/org-transclusion/")
39+
```
40+
41+
## Basic Configuration
42+
43+
Org-roam must be configured before Md-roam. As a minimal configuration for Md-roam, these should be sufficient:
44+
45+
- `(setq org-roam-file-extensions '("org" "md")) ; enable Org-roam for a markdown extension`
46+
- `(md-roam-mode 1) ; md-roam-mode needs to be active before org-roam-db-sync`
47+
- `(setq md-roam-file-extension-single "md") ; Default is "md". Specify an extension such as "markdown"`
48+
49+
```emacs-lisp
50+
(setq org-roam-v2-ack t)
51+
(require 'org-roam)
52+
(setq org-roam-directory (file-truename "path/to/org-roam-directory"))
53+
(setq org-roam-file-extensions '("org" "md")) ; enable Org-roam for a markdown extension
54+
(add-to-list 'load-path "path/to/md-roam/")
55+
(require 'md-roam)
56+
(md-roam-mode 1) ; md-roam-mode needs to be active before org-roam-db-sync
57+
(setq md-roam-file-extension-single "md") ; Default is "md". Specify an extension such as "markdown"
58+
(org-roam-db-autosync-mode 1) ; Org-roam db autosync-mode
59+
```
60+
61+
Additionally, you can use `org-roam-capture-templates` for Markdown files like this:
62+
63+
```emacs-lisp
64+
(add-to-list 'org-roam-capture-templates
65+
'("m" "Markdown" plain "" :target
66+
(file+head "%<%Y-%m-%dT%H%M%S>.md"
67+
"---\ntitle: ${title}\nid: %<%Y-%m-%dT%H%M%S>\ncategory: \n---\n")
68+
:unnarrowed t))
69+
```
70+
71+
For interactive commands, you can use the Org-roam's standard ones. There is no specific commands for Md-roam:
72+
73+
```emacs-lisp
74+
;;;; Org-roam
75+
(define-key global-map (kbd "C-c n f") #'org-roam-node-find)
76+
(define-key global-map (kbd "C-c n c") #'org-roam-capture)
77+
(define-key global-map (kbd "C-c n i") #'org-roam-node-insert)
78+
(define-key global-map (kbd "C-c n l") #'org-roam-buffer-toggle)
79+
```
80+
2881
# License
2982

3083
Md-Roam: Copyright © Noboru Ota

0 commit comments

Comments
 (0)