(docs): simplifying doom installation instructions (#381)

With the new `+roam` flag now added to doom emacs, this simplifies the instructions.
This commit is contained in:
bdarcus
2020-03-30 17:46:46 -04:00
committed by GitHub
parent b86d2c8637
commit 04acbda916

View File

@@ -89,34 +89,9 @@ with that of the ranger layer. You might want to change it to 'aor'
## Doom Emacs
If you are using [Doom Emacs][doom], configure packages as explained in the
[getting started][doom-getting-started] guide.
Declare Org-roam as a package in your `~/.doom.d/packages.el`:
```elisp
;; ~/.doom.d/packages.el
(package! org-roam
:recipe (:host github :repo "jethrokuan/org-roam"))
```
Subsequently, in your `~/.doom.d/config.el` file, configure Org-roam:
```elisp
;; ~/.doom.d/config.el
(use-package! org-roam
:commands (org-roam-insert org-roam-find-file org-roam)
:init
(setq org-roam-directory "/path/to/org-files/")
(map! :leader
:prefix "n"
:desc "Org-Roam-Insert" "i" #'org-roam-insert
:desc "Org-Roam-Find" "/" #'org-roam-find-file
:desc "Org-Roam-Buffer" "r" #'org-roam)
:config
(org-roam-mode +1))
```
[Doom Emacs][doom] has a `+roam` flag on its `org` module for easy
installation and configuration. Simply add the flag to the `org` section
of your `~/.doom.d/init.el` and run `~/.emacs.d/bin/doom sync`.
[use-package]: https://github.com/jwiegley/use-package
[straight]: https://github.com/raxod502/straight.el