Skip to content

Commit

Permalink
fixing journal errors. Added save-entry-and-exit
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnyhasija committed Aug 5, 2020
1 parent 6513da4 commit 902c49a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
16 changes: 11 additions & 5 deletions config.el
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@
;;
;; To get information about any of these functions/macros, move the cursor over
;; the highlighted symbol at press 'K' (non-evil users must press 'C-c g k').
;;
;; This will open documentation for it, including demos of how they are used.
;;
;; You can also try 'gd' (or 'C-c g d') to jump to their definition and see how
Expand Down Expand Up @@ -232,13 +233,18 @@
:bind
("C-c n j" . org-journal-new-entry)
:custom
(org-journal-dir "~/Dropbox/Org/")
(org-journal-dir "~/Dropbox/Org/Daily/")
(org-journal-date-prefix "#+TITLE: ")
(org-journal-file-format "%Y-%m-%d.org")
(org-journal-date-format "%A, %d %B %Y"))
(setq org-journal-enable-agenda-integration t)


(defun org-journal-save-entry-and-exit()
"Save buffer of the current day's entry and kill the window."
(interactive)
(save-buffer)
(kill-buffer-and-window))
(define-key org-journal-mode-map (kbd "C-c n s") 'org-journal-save-entry-and-exit)
(use-package deft
:after org
:bind
Expand Down Expand Up @@ -273,8 +279,8 @@
(interactive)
(org-roam-server-mode 1)
(browse-url-xdg-open (format "http://localhost:%d" org-roam-server-port))))
(after! org-roam
(org-roam-server-mode))
;(after! org-roam
; (org-roam-server-mode))


(use-package! org-download
Expand Down Expand Up @@ -382,7 +388,7 @@
;; If there is more than one, they won't work right.
'(org-journal-date-format "%A, %d %B %Y" t)
'(org-journal-date-prefix "#+TITLE: " t)
'(org-journal-dir "~/Dropbox/Org/references/notes/" t)
'(org-journal-dir "~/Dropbox/Org/Daily/" t)
'(org-journal-file-format "%Y-%m-%d.org" t)
'(package-selected-packages (quote (org-fancy-priorities))))
(custom-set-faces
Expand Down
4 changes: 2 additions & 2 deletions custom.el
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
;; If there is more than one, they won't work right.
'(org-agenda-files
(quote
("/home/cantos/Dropbox/Org/DissTODO.org" "/home/cantos/Dropbox/Org/inbox.org" "/home/cantos/Dropbox/Org/todo.org" "/home/cantos/Dropbox/Org/references/notes/2020-08-03.org" "/home/cantos/Dropbox/Org/2020-08-03.org")))
("/home/cantos/Dropbox/Org/todo.org" "/home/cantos/Dropbox/Org/Daily/2020-08-04.org")))
'(org-journal-date-format "%A, %d %B %Y")
'(org-journal-date-prefix "#+TITLE: ")
'(org-journal-dir "~/Dropbox/Org/references/notes/")
'(org-journal-dir "~/Dropbox/Org/Daily/")
'(org-journal-file-format "%Y-%m-%d.org")
'(package-selected-packages (quote (org-fancy-priorities))))
(custom-set-faces
Expand Down

0 comments on commit 902c49a

Please sign in to comment.