commit 6dbc6885273a1b2b7f09dc2705544fdeef0bfcda
parent ea1b86547523d6ce66bd850b36f9c17cb70c27c5
Author: Vincent Demeester <vincent@sbr.pm>
Date: Fri, 3 Apr 2020 07:40:58 +0200
setup-org.el: bind agenda and capture in org 🐦
This make the binding available *before* org (and org-agenda, …) is loaded.
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Diffstat:
1 file changed, 10 insertions(+), 7 deletions(-)
diff --git a/tools/emacs/config/setup-org.el b/tools/emacs/config/setup-org.el
@@ -27,6 +27,12 @@
(use-package org
:ensure org-plus-contrib ;; load from the package instead of internal
:mode (("\\.org$" . org-mode))
+ :commands (org-agenda org-capture)
+ :bind (("C-c o l" . org-store-link)
+ ("C-c o r r" . org-refile)
+ ("C-c o a" . org-agenda)
+ ("<f12>" . org-agenda)
+ ("C-c o c" . org-capture))
:config
(setq org-agenda-files `(,org-default-projects-dir
,user-emacs-directory
@@ -92,8 +98,6 @@
org-startup-with-inline-images nil
org-list-demote-modify-bullet '(("+" . "-") ("-" . "+")))
(setcar (nthcdr 4 org-emphasis-regexp-components) 10)
- :bind (("C-c o l" . org-store-link)
- ("C-c o r r" . org-refile))
:hook (org-mode . vde/org-mode-hook))
;; -OrgMain
@@ -153,6 +157,9 @@
(use-package org-agenda
:after (org)
:commands (org-agenda)
+ :bind (("C-c o a" . org-agenda)
+ ("<f12>" . org-agenda)
+ ("C-c o r a" . org-agenda-refile))
:config
(use-package org-super-agenda
:config (org-super-agenda-mode))
@@ -195,11 +202,7 @@
(:name "Home" :tag "@home")
(:name "Writing" :tag "@writing")
(:habit t))))
- (org-agenda-list))))
- :commands (org-agenda)
- :bind (("C-c o a" . org-agenda)
- ("<f12>" . org-agenda)
- ("C-c o r a" . org-agenda-refile)))
+ (org-agenda-list)))))
;; -OrgAgenda
;; OrgGcal