bastibe / org-journal

A simple org-mode based journaling mode
BSD 3-Clause "New" or "Revised" License
1.24k stars 123 forks source link

org-journal--cache-file location should be user definable not hard-coded #369

Open madanyang opened 2 years ago

madanyang commented 2 years ago

Describe the bug org-journal.cache file is hard-coded

To Reproduce Whenever the cache generated/updated the file is created/updated in the user-emacs directory.

Expected behavior User should be able to place the cache file in a custom directory or let as it is. Yet it should be definable.

Desktop (please complete the following information):

Your Emacs Configuration

That is the problem as it is not defcustom. As a hack I have started to use the following

(el-patch-feature org-journal) (with-eval-after-load 'org-journal (el-patch-defconst org-journal--cache-file "~/datasets/org-journal.cache" "Cache file for `org-journal--dates'."))