diff options
author | Kyle Meyer <kyle@kyleam.com> | 2014-03-21 01:46:00 -0400 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2014-03-23 16:27:49 -0400 |
commit | 72287d6dc7d7319cc401aa605526ca1ba4dc4886 (patch) | |
tree | 21612d5376dccb60490b65d178deef5dad8302cf /bog-readme.org | |
parent | 7e6cd7dd22322231e8499c0c0986993d1db529b8 (diff) | |
download | bog-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 'bog-readme.org')
-rw-r--r-- | bog-readme.org | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/bog-readme.org b/bog-readme.org index b79f0fd..9e18fd3 100644 --- a/bog-readme.org +++ b/bog-readme.org @@ -118,18 +118,12 @@ 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 +* Keybindings -Bog doesn't claim any keybindings, but using "C-c b" as a prefix while -in Org mode is a good option. +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. #+begin_src emacs-lisp - (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) + (eval-after-load 'org + '(define-key org-mode-map (kbd "C-c b") bog-mode-map)) #+end_src |