diff --git a/oni-org.el b/oni-org.el index f9e6e4f..a967bc3 100644 --- a/oni-org.el +++ b/oni-org.el @@ -4,8 +4,8 @@ ;; Author: Tom Willemse ;; Keywords: local -;; Version: 20190212005505 -;; Package-Requires: (org-plus-contrib org-bullets) +;; Version: 20190222000538 +;; Package-Requires: (org-plus-contrib org-bullets hydra) ;; This program is free software; you can redistribute it and/or modify ;; it under the terms of the GNU General Public License as published by @@ -26,6 +26,7 @@ ;;; Code: +(require 'hydra) (require 'org) (require 'org-capture) (require 'org-habit) @@ -81,6 +82,14 @@ ones that have a predecessor." (oni-org-heading-has-predecessor-p)) (oni-org-next-heading-position)))) +;;;###autoload(autoload 'oni-hydra-org/body "oni-org") +(defhydra oni-hydra-org (:color blue) + "Org" + ("l" org-store-link "Store link") + ("a" org-agenda "Agenda") + ("c" org-capture "Capture") + ("b" org-switchb "Switch to org buffer")) + (setq org-default-notes-file (oni-org-expand-to-home "documents/gtd/inbox.org")) (setq org-src-fontify-natively t) @@ -133,5 +142,8 @@ ones that have a predecessor." (add-hook 'org-mode-hook 'org-bullets-mode) (add-hook 'org-mode-hook #'oni-org-setup-prettify-symbols-mode)) +;;;###autoload +(global-set-key (kbd "C-c o") 'oni-hydra-org/body) + (provide 'oni-org) ;;; oni-org.el ends here