CatUnderOak

joined 1 year ago
 

To manage packages conveniently, I set new load-path by (add-to-list 'load-path "c:/emacs/.emacs.d/lisp")

After that I checked load-path lists through C-h v load-path, which confirms "c:/emacs/.emacs.d/lisp" had been added into load-path lists successfully. Then I run (use-pakage xxx) inside my custom init.el, but a warning occurred said

Error (use-package): Cannot load xxx

I rechecked load-path lists and move packages to another one directory mentioned in load-path lists, which is loacted in Emacs installtion directory named site-lisp. THEN (use-pakage xxx) returned to normal and didn't rose a warning.

It's so weird, and I just want to set a custom packages load-path. Does anyone know what goes wrong?

[–] 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)

 

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