summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2014-03-21 01:46:00 -0400
committerKyle Meyer <kyle@kyleam.com>2014-03-23 16:27:49 -0400
commit72287d6dc7d7319cc401aa605526ca1ba4dc4886 (patch)
tree21612d5376dccb60490b65d178deef5dad8302cf /README.md
parent7e6cd7dd22322231e8499c0c0986993d1db529b8 (diff)
downloadbog-72287d6dc7d7319cc401aa605526ca1ba4dc4886.tar.gz
Define keymap for Bog
Instead of just suggesting keys, create a keymap, but don't bind it to a prefix key.
Diffstat (limited to 'README.md')
-rw-r--r--README.md20
1 files changed, 7 insertions, 13 deletions
diff --git a/README.md b/README.md
index f304b7e..916b71d 100644
--- a/README.md
+++ b/README.md
@@ -110,16 +110,10 @@ The variables below are important for specifying how Bog behaves.
a directory of single-entry BibTeX files or a single BibTeX file is
used.
-# Recommended keybindings
-
-Bog doesn't claim any keybindings, but using "C-c b" as a prefix while
-in Org mode is a good option.
-
- (define-prefix-command 'bog-map)
- (define-key org-mode-map (kbd "C-c b") 'bog-map)
- (define-key bog-map "p" 'bog-find-citekey-pdf)
- (define-key bog-map "r" 'bog-rename-staged-pdf-to-citekey)
- (define-key bog-map "b" 'bog-find-citekey-bib)
- (define-key bog-map "h" 'bog-goto-citekey-heading-in-buffer)
- (define-key bog-map "H" 'bog-goto-citekey-heading-in-notes)
- (define-key bog-map "w" 'bog-search-citekey-on-web) \ No newline at end of file
+# Keybindings
+
+A keymap is defined for Bog, but a prefix isn't claimed. The code below
+shows how to use "C-c b" as the prefix while in Org mode.
+
+ (eval-after-load 'org
+ '(define-key org-mode-map (kbd "C-c b") bog-mode-map)) \ No newline at end of file