Josiah Schwab writes:

> When I invoke the capture from my bookmark, I also want capture to be
> the only window in the frame.  I can make all captures act that way by
> setting (add-hook 'org-capture-mode-hook 'delete-other-windows)
>
> But when I tried to have this part be source dependent with
>
> (defun jws/org-capture-initialize ()
>   (if (jws/org-protocol-capture-p) 'delete-other-windows))
>
> (add-hook 'org-capture-mode-hook 'jws/org-capture-initialize)
>
> it still gave me a frame with two windows, for reasons I don't
> understand.  I stepped through the code with edebug and confirmed that
> jws/org-protocol-capture-p was evaluating to true.

Just to follow up, in case someone searches for this thread, 

(defun jws/org-capture-initialize ()
  (if (jws/org-protocol-capture-p) (delete-other-windows)))

works fine.  It helps to actually evaluate the function...

Josiah

Reply via email to