Skip to content

Commit

Permalink
[org] Fix startup and document key bindings
Browse files Browse the repository at this point in the history
When org-roam support was not on startup
of emacs was broken due to referencing
an unbound variable.

Also added the new bindings to the
docs.
  • Loading branch information
smile13241324 committed Apr 8, 2021
1 parent d77e76e commit 5fd1976
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 16 deletions.
31 changes: 16 additions & 15 deletions layers/+emacs/org/README.org
Original file line number Diff line number Diff line change
Expand Up @@ -1023,18 +1023,19 @@ Key binding prefixes:
- ~SPC a o r~ (anywhere)
- ~SPC m r~ (in an org-mode buffer)

| Key binding | Description |
|------------------+---------------------------------------|
| ~[prefix] r l~ | Toggle org-roam links visibility |
| ~[prefix] r f~ | Find file in org-roam |
| ~[prefix] r i~ | Insert file into org-roam |
| ~[prefix] r I~ | Immediately insert file into org-roam |
| ~[prefix] r g~ | Visualize org-roam graph |
| ~[prefix] r b~ | Switch org-roam buffer |
| ~[prefix] r d y~ | Open yesterday's daily note |
| ~[prefix] r d t~ | Open today's daily note |
| ~[prefix] r d T~ | Open tomorrow's daily note |
| ~[prefix] r d d~ | Open daily note via calendar view |
| ~[prefix] r t a~ | add org-roam tag to file |
| ~[prefix] r t d~ | delete org-roam tag from file |
| ~[prefix] r a~ | add org-roam alias to file |
| Key binding | Description |
|---------------+---------------------------------------|
| ~SPC m r l~ | Toggle org-roam links visibility |
| ~SPC m r f~ | Find file in org-roam |
| ~SPC m r i~ | Insert file into org-roam |
| ~SPC m r I~ | Immediately insert file into org-roam |
| ~SPC m r g~ | Visualize org-roam graph |
| ~SPC m r b~ | Switch org-roam buffer |
| ~SPC m r d y~ | Open yesterday's daily note |
| ~SPC m r d t~ | Open today's daily note |
| ~SPC m r d T~ | Open tomorrow's daily note |
| ~SPC m r d d~ | Open daily note via calendar view |
| ~SPC m r t a~ | Add org-roam tag to file |
| ~SPC m r t d~ | Delete org-roam tag from file |
| ~SPC m r a~ | Add org-roam alias to file |
| ~SPC m r s~ | Start org-roam server mode |
2 changes: 1 addition & 1 deletion layers/+emacs/org/config.el
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ are configured.")
(defvar org-enable-verb-support nil
"If non-nil, Verb (https://github.com/federicotdn/verb) is configured.")

(defvar org-enable-roam-support (when org-enable-roam-server t)
(defvar org-enable-roam-support (bound-and-true-p org-enable-roam-server)
"If non-nil, org-roam (https://www.orgroam.com/) is configured")

(defvar org-persp-startup-org-file nil
Expand Down

0 comments on commit 5fd1976

Please sign in to comment.