summaryrefslogtreecommitdiff
path: root/bog.el
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 /bog.el
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 'bog.el')
-rw-r--r--bog.el14
1 files changed, 14 insertions, 0 deletions
diff --git a/bog.el b/bog.el
index 22bdedd..99694c3 100644
--- a/bog.el
+++ b/bog.el
@@ -545,6 +545,20 @@ level `bog-refile-maxlevel' are considered."
(font-lock-add-keywords 'org-mode
'((bog-non-heading-citekey-p . 'bog-citekey-face)))
+
+;;; Keymap
+
+(defvar bog-mode-map
+ (let ((map (make-sparse-keymap)))
+ (define-key map "p" 'bog-find-citekey-pdf)
+ (define-key map "r" 'bog-rename-staged-pdf-to-citekey)
+ (define-key map "b" 'bog-find-citekey-bib)
+ (define-key map "h" 'bog-goto-citekey-heading-in-buffer)
+ (define-key map "H" 'bog-goto-citekey-heading-in-notes)
+ (define-key map "w" 'bog-search-citekey-on-web)
+ map)
+ "Keymap for Bog.")
+
(provide 'bog)
;; bog.el ends here