Giter VIP home page Giter VIP logo

Comments (6)

 avatar commented on August 21, 2024 2

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.

weverett avatar weverett commented on August 21, 2024

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.

bastibe avatar bastibe commented on August 21, 2024

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.

weverett avatar weverett commented on August 21, 2024

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.

rickardsundin avatar rickardsundin commented on August 21, 2024

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.

bastibe avatar bastibe commented on August 21, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.