From f1fc70ebcc3500928064a2209b2b68d4adb6d8ec Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Fri, 22 Feb 2019 00:04:47 -0800 Subject: Add a Hydra to Org configuration --- oni-org.el | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) 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 -- cgit v1.2.3-54-g00ecf