Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customize file name and structure of the journal #2

Closed
samspo opened this issue Aug 20, 2013 · 5 comments
Closed

Customize file name and structure of the journal #2

samspo opened this issue Aug 20, 2013 · 5 comments

Comments

@samspo
Copy link

samspo commented Aug 20, 2013

Hi bastide,

Very useful mode for me. Thanks.

Would be very cool if it was possible to customize the file format (for instance YYYY-MM-DD.txt) and the structure of the journal (but I'm not able to programm anything). For instance, I would prefer a structure like that:

 #+TITLE: 06/04/13
 * 10:28 Company meeting
@bastibe
Copy link
Owner

bastibe commented Aug 20, 2013

That is a great idea! I will try to implement that next weekend!

@bastibe
Copy link
Owner

bastibe commented Aug 25, 2013

Fixed in 50e2b3c

You can now customize org-journal-date-prefix and org-journal-time-prefix to change the titles to your liking.

You can also customize org-journal-file-format to change the file name (make sure to change org-journal-file-pattern accordingly).

@bastibe bastibe closed this as completed Aug 25, 2013
@samspo
Copy link
Author

samspo commented Aug 26, 2013

Thank you very much. It works perfectly to create new files.

However, the interaction with the calendar does not really function for me.

My customization is:
(setq org-journal-file-format "%Y-%m-%d.txt")
(setq org-journal-file-pattern "201[0-9]-[0-9][0-9]-[0-9][0-9].txt")

I suspect that
(find-file-other-window (concat org-journal-dir
(format-time-string "%Y%m%d" time)))
should be
(find-file-other-window (concat org-journal-dir
(format-time-string org-journal-file-format time)))

But something else is wrong and I do not know what part it is.

@bastibe
Copy link
Owner

bastibe commented Aug 26, 2013

Oh, indeed, I missed that. I'll fix it tomorrow.

@bastibe bastibe reopened this Aug 26, 2013
@bastibe
Copy link
Owner

bastibe commented Aug 26, 2013

Alright, I fixed it in 65a677b

(marmade is updated, too)

@bastibe bastibe closed this as completed Aug 26, 2013
@x61 x61 mentioned this issue Jan 19, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants