[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] org-capture-hook only when in frame?
From: |
Tom Prince |
Subject: |
Re: [O] org-capture-hook only when in frame? |
Date: |
Tue, 20 Sep 2011 19:55:06 -0400 |
User-agent: |
Notmuch/0.7 (http://notmuchmail.org) Emacs/23.3.3 (x86_64-pc-linux-gnu) |
On Tue, 20 Sep 2011 18:45:31 -0400, Micah Anderson <address@hidden> wrote:
Non-text part: multipart/signed
>
> I have a function to create a frame for capture mode that I can call
> with emacsclient at any time:
>
> ;; Initialization of capture frames
> (defun make-capture-frame ()
> "Create a new frame and run org-capture"
> (interactive)
> (make-frame '((name . "capture") (width . 80) (height . 10)))
> (select-frame-by-name "capture")
> ;; Org-remember splits windows, force it to a single window
(let ((org-capture-mode-hook))
> (add-hook 'org-capture-mode-hook 'delete-other-windows)
> (org-capture)
)
> )
Would probably work, although there may be better ways.
Tom