Fix org-repo-todo loading

- Incorrect function name
- Remove explicit list of commands (they all have autoload cookies)
This commit is contained in:
Eivind Fonn 2015-09-18 10:25:44 +02:00
parent 220b15a734
commit d0d2b15ae2
2 changed files with 8 additions and 11 deletions

View File

@ -204,9 +204,9 @@ org-present must be activated explicitly by typing: ~SPC : org-present~
** Org-repo-todo
| Key Binding | Description |
|-------------+------------------------|
| ~SPC C c~ | org-capture |
| ~SPC C t~ | ort/capture-todo |
| ~SPC C T~ | ort/capture-todo-check |
| ~SPC m g t~ | ort/goto-todos |
| Key Binding | Description |
|-------------+-----------------------|
| ~SPC C c~ | org-capture |
| ~SPC C t~ | ort/capture-todo |
| ~SPC C T~ | ort/capture-checkitem |
| ~SPC m g t~ | ort/goto-todos |

View File

@ -239,17 +239,14 @@ Will work on both org-mode and any mode that accepts plain html."
(add-hook 'org-present-mode-hook 'spacemacs//org-present-start)
(add-hook 'org-present-mode-quit-hook 'spacemacs//org-present-end))))
(defun org/init-org-repo-todo ()
(use-package org-repo-todo
:commands (ort/capture-todo
ort/capture-todo-check
ort/goto-todos)
:defer t
:init
(progn
(evil-leader/set-key
"Ct" 'ort/capture-todo
"CT" 'ort/capture-todo-check)
"CT" 'ort/capture-checkitem)
(evil-leader/set-key-for-mode 'org-mode
"mgt" 'ort/goto-todos))))