I am trying to create a shortcut to my current shortcut to my org-capture.
- Current shortcut : C-c c j
- New shortcut : F9
function key using following custom code
(defun my/journalcapture() "Journal entry by project" (interactive "P") (org-capture "j")) (global-set-key (kbd "<f9>") 'my/journalcapture)
The error I am getting is this
Wrong number of arguments: (lambda nil "Journal entry by project" (interactive "P") (org-capture nil "j")), 1
Org-capture function definition is as below
org-capture (&optional goto keys)
I am not able to understand what is goto
and how to define keys
Previously, I have successfully set up shortcut for agenda. From C-c a R
to F12
using code below.
I am not sure what's the difference.
(defun my/dailyagenda(&optional arg) "Daily agenda" (interactive "P") (org-agenda arg "R") (delete-other-windows)) (global-set-key (kbd "<f12>") 'my/dailyagenda)