Merge pull request #1785 from rgrinberg/org-journal-feature

lang/org: add +journal feature (org-journal)
This commit is contained in:
Henrik Lissner 2019-09-19 12:57:48 -04:00 committed by GitHub
commit 4aff103770
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 23 additions and 1 deletions

View file

@ -708,7 +708,12 @@
:desc "Search org agenda headlines" "h" #'+default/org-notes-headlines :desc "Search org agenda headlines" "h" #'+default/org-notes-headlines
:desc "Find file in notes" "n" #'+default/find-in-notes :desc "Find file in notes" "n" #'+default/find-in-notes
:desc "Browse notes" "N" #'+default/browse-notes :desc "Browse notes" "N" #'+default/browse-notes
:desc "Org store link" "l" #'org-store-link) :desc "Org store link" "l" #'org-store-link
(:when (featurep! :lang org +journal)
(:prefix ("j" . "journal")
:desc "New Entry" "j" #'org-journal-new-entry
:desc "Search Forever" "s" #'org-journal-search-forever)))
;;; <leader> o --- open ;;; <leader> o --- open
(:prefix-map ("o" . "open") (:prefix-map ("o" . "open")

View file

@ -0,0 +1,14 @@
;;; lang/org/contrib/journal.el -*- lexical-binding: t; -*-
;;;###if (featurep! +journal)
(use-package! org-journal
:defer t
:config
(map! :map org-journal-search-mode-map
:localleader
"n" #'org-journal-search-next
"p" #'org-journal-search-prev)
(map! :map org-journal-mode-map
:localleader
"n" #'org-journal-open-next-entry
"p" #'org-journal-open-previous-entry))

View file

@ -49,3 +49,6 @@
(package! centered-window :recipe (:host github :repo "anler/centered-window-mode")) (package! centered-window :recipe (:host github :repo "anler/centered-window-mode"))
(package! org-tree-slide) (package! org-tree-slide)
(package! ox-reveal)) (package! ox-reveal))
(when (featurep! +journal)
(package! org-journal))