diff options
author | Tom Willemse | 2019-02-22 00:04:47 -0800 |
---|---|---|
committer | Tom Willemse | 2019-02-22 00:07:17 -0800 |
commit | f1fc70ebcc3500928064a2209b2b68d4adb6d8ec (patch) | |
tree | ff3b59d771c37cd67e78a2bc5a457468cdc78bfb | |
parent | c9f1c036bf0cd4cedae23f098fdbc004fd1e3fc2 (diff) | |
download | emacs-config-f1fc70ebcc3500928064a2209b2b68d4adb6d8ec.tar.gz emacs-config-f1fc70ebcc3500928064a2209b2b68d4adb6d8ec.zip |
Add a Hydra to Org configuration
-rw-r--r-- | oni-org.el | 16 |
1 files changed, 14 insertions, 2 deletions
@@ -4,8 +4,8 @@ ;; Author: Tom Willemse <tom@ryuslash.org> ;; 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 |