this post was submitted on 09 Nov 2023
1 points (100.0% liked)

Emacs

314 readers
2 users here now

A community for the timeless and infinitely powerful editor. Want to see what Emacs is capable of?!

Get Emacs

Rules

  1. Posts should be emacs related
  2. Be kind please
  3. Yes, we already know: Google results for "emacs" and "vi" link to each other. We good.

Emacs Resources

Emacs Tutorials

Useful Emacs configuration files and distributions

Quick pain-saver tip

founded 1 year ago
MODERATORS
 

I have set agenda files to refile captures, which codes show as below

(setq org-agenda-files (list "~/org/))

Also, include refile codes

(setq org-refile-targets '((nil :maxlevel . 2) (org-agenda-files :maxlevel . 2)))

(setq org-outline-path-complete-in-steps nil)

(setq org-refile-use-outline-path 'file)

The main problem is I can not find files I set in the org-agenda-files when I want to refile my capture in completions

top 2 comments
sorted by: hot top controversial new old
[–] yantar92@alien.top 1 points 1 year ago (1 children)

(setq org-agenda-files (list "~/org/)) has a missing closing ".

[–] CatUnderOak@alien.top 1 points 1 year ago

Thanks a lot, but it's not the reason. I have located the point to solve the problem, which is I didn't set org-agenda-files in original init.el (I have another extral init.el for convenience)