summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lisp/init-bog.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/init-bog.el b/lisp/init-bog.el
index 49dcff0..1d88dd6 100644
--- a/lisp/init-bog.el
+++ b/lisp/init-bog.el
@@ -1,9 +1,10 @@
-(require 'bog)
+(setq bog-keymap-prefix (kbd "C-c b"))
(setq bog-completing-read 'ido-completing-read
bog-read-file-name 'ido-read-file-name)
-(eval-after-load 'org
- '(define-key org-mode-map (kbd "C-c b") bog-mode-map))
+(autoload 'bog-mode "bog")
+
+(add-hook 'org-mode-hook 'bog-mode)
(provide 'init-bog)