0

I made a custom function that goes to the target of capture:

(defun inbox-goto()
  (interactive)
  (org-capture-goto-target "c"))

It works well once I invoke org-capture, but if I try to use it right after fresh boot, it gives me "Symbol's function definition is void: org-capture-goto-target".

THIS USER NEEDS HELP
  • 3,136
  • 4
  • 30
  • 55

1 Answers1

1

I'm pretty sure your problem is that org-capture is autoloaded but org-capture-goto-target is not. The simplest way to fix that is probably to insert a require into the definition for inbox-goto:

(defun inbox-goto ()
  (interactive)
  (require 'org-capture)
  (org-capture-goto-target "c"))
Aaron Harris
  • 876
  • 12
  • 14