expose org-journal binded functions as commands
And also fix indentation. This is to complete #7060
This commit is contained in:
parent
c37f4212e3
commit
0477040f7e
|
@ -561,26 +561,25 @@ Headline^^ Visit entry^^ Filter^^ Da
|
||||||
(defun org/init-org-journal ()
|
(defun org/init-org-journal ()
|
||||||
(use-package org-journal
|
(use-package org-journal
|
||||||
:defer t
|
:defer t
|
||||||
|
:commands (org-journal-new-entry org-journal-search-forever)
|
||||||
:init
|
:init
|
||||||
(progn
|
(progn
|
||||||
(spacemacs/declare-prefix "aoj" "org-journal")
|
(spacemacs/declare-prefix "aoj" "org-journal")
|
||||||
(spacemacs/set-leader-keys
|
(spacemacs/set-leader-keys
|
||||||
"aojj" 'org-journal-new-entry
|
"aojj" 'org-journal-new-entry
|
||||||
"aojs" 'org-journal-search-forever)
|
"aojs" 'org-journal-search-forever)
|
||||||
|
|
||||||
(spacemacs/set-leader-keys-for-major-mode 'calendar-mode
|
(spacemacs/set-leader-keys-for-major-mode 'calendar-mode
|
||||||
"r" 'org-journal-read-entry
|
"r" 'org-journal-read-entry
|
||||||
"i" 'org-journal-new-date-entry
|
"i" 'org-journal-new-date-entry
|
||||||
"n" 'org-journal-next-entry
|
"n" 'org-journal-next-entry
|
||||||
"p" 'org-journal-previous-entry
|
"p" 'org-journal-previous-entry
|
||||||
"s" 'org-journal-search-forever
|
"s" 'org-journal-search-forever
|
||||||
"w" 'org-journal-search-calendar-week
|
"w" 'org-journal-search-calendar-week
|
||||||
"m" 'org-journal-search-calendar-month
|
"m" 'org-journal-search-calendar-month
|
||||||
"y" 'org-journal-search-calendar-year)
|
"y" 'org-journal-search-calendar-year)
|
||||||
|
|
||||||
(spacemacs/set-leader-keys-for-major-mode 'org-journal-mode
|
(spacemacs/set-leader-keys-for-major-mode 'org-journal-mode
|
||||||
"j" 'org-journal-new-entry
|
"j" 'org-journal-new-entry
|
||||||
"n" 'org-journal-open-next-entry
|
"n" 'org-journal-open-next-entry
|
||||||
"p" 'org-journal-open-previous-entry))))
|
"p" 'org-journal-open-previous-entry))))
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue