Comments (6)
this has again raised it's head. Using spacemacs and have eval-after-load of org-journal then load the agenda-file regexp and still receive the file is not in org mode. is there a way to put the header info in the file or another regex add-to list?
from org-journal.
Just to see if it would work, I changed this in org-journal.el
(add-to-list 'auto-mode-alist
(cons (concat (file-truename org-journal-dir)
org-journal-file-pattern)
'org-journal-mode))
to add the journal files in org-mode instead of org-journal-mode. That made the agenda work, but obviously lost the org-journal features, so I changed it back to org-journal-mode and now the files load in org-journal-mode and they work with the agenda. Weird.
from org-journal.
org-journal-mode is derived from org-mode, so it should support all the features from org-mode. This might be an issue with the initialization order.
from org-journal.
Yeah, I'm not sure what happened or why changing and reverting that one line fixed it. It's okay with me if you want to close this. I don't see any way of replicating the behavior now.
from org-journal.
A quick note three years later...
For me, the configuration at top works better if the last line is modified to be
(setq org-agenda-file-regexp "\\`[^.].*\\.org\\'\\|\\`[0-9]+\\'")
which I think matches all filenames that ends with .org
and all filenames that consists only of numbers. The version above seems to match all filenames containing numbers.
from org-journal.
If I'm not mistaken, this is what the README recommends as of 4876bbc (two months ago). There have been many iterations on this regex, and I still don't quite understand why some permutations work better than others despite being seemingly identical.
from org-journal.
Related Issues (20)
- open-current-journal-file does not respect org-extend-today-until HOT 2
- Org Journal new entry does not enter time prefix along with current time for daily files HOT 5
- org-journal test suite failing under emacs 29 HOT 2
- support Daily / Weekly / Monthly journal at the same time
- After a recently upgrade of org, an error of "cannot be used in non-org buffer" raised HOT 4
- journal entries are not carried over when there are file headers HOT 2
- [BUG] Possible "hide entries" behavior bug. HOT 2
- [Question / Discussion] How to have a different `org-jounal-dir` for different projects?
- 'org-journal-new-entry' now seems broken with error: 'org-element-at-point' cannot be used in non-Org buffer HOT 2
- create-entry is brittle on unexpected contents in PROPERTIES blocks HOT 6
- Switch from travis to github actions HOT 1
- The test suite fails: HOT 4
- Write test for `org-extend-today-until` and re-factor references of `org-extend-today-until` into function
- Close issues opened before 2021? HOT 2
- Use Eask HOT 2
- org-journal.el:1984:1:Warning: the function `org--tag-add-to-alist' is not known to be defined -- see github action emacs 26.1 HOT 2
- rename master -> main and develop -> dev HOT 9
- Forum -- a issue open for general discussion about `org-journal` HOT 4
- Replace the caching functionality with`org-persist.el`... HOT 2
- `org-journal-new-entry` insert duplicate header on narrowed journal buffer
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from org-journal.