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.el | |
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.el')
-rw-r--r-- | bog.el | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -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 |