Skip to content

Commit

Permalink
expose org-journal binded functions as commands
Browse files Browse the repository at this point in the history
And also fix indentation.

This is to complete syl20bnr#7060
  • Loading branch information
d12frosted authored and CodingSolo committed Oct 29, 2018
1 parent 890e074 commit 40530e1
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions layers/+emacs/org/packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -560,26 +560,25 @@ Headline^^ Visit entry^^ Filter^^ Da
(defun org/init-org-journal ()
(use-package org-journal
:defer t
:commands (org-journal-new-entry org-journal-search-forever)
:init
(progn
(spacemacs/declare-prefix "aoj" "org-journal")
(spacemacs/set-leader-keys
"aojj" 'org-journal-new-entry
"aojs" 'org-journal-search-forever)
(spacemacs/declare-prefix "aoj" "org-journal")
(spacemacs/set-leader-keys
"aojj" 'org-journal-new-entry
"aojs" 'org-journal-search-forever)

(spacemacs/set-leader-keys-for-major-mode 'calendar-mode
"r" 'org-journal-read-entry
"i" 'org-journal-new-date-entry
"n" 'org-journal-next-entry
"p" 'org-journal-previous-entry
"s" 'org-journal-search-forever
"w" 'org-journal-search-calendar-week
"m" 'org-journal-search-calendar-month
"y" 'org-journal-search-calendar-year)
"n" 'org-journal-next-entry
"p" 'org-journal-previous-entry
"s" 'org-journal-search-forever
"w" 'org-journal-search-calendar-week
"m" 'org-journal-search-calendar-month
"y" 'org-journal-search-calendar-year)

(spacemacs/set-leader-keys-for-major-mode 'org-journal-mode
"j" 'org-journal-new-entry
"n" 'org-journal-open-next-entry
"p" 'org-journal-open-previous-entry))))


0 comments on commit 40530e1

Please sign in to comment.