[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Getting rid of split frame with org-capture
From: |
Alan Schmitt |
Subject: |
Re: [O] Getting rid of split frame with org-capture |
Date: |
Fri, 04 Oct 2013 09:06:23 +0200 |
User-agent: |
mu4e 0.9.9.5; emacs 24.3.1 |
address@hidden writes:
> I also wanted to have new pop-up org-capture window that would be created
> in
> response to some shortcut anywhere in Windows and occupied the entire
> frame.
> Since I haven't found any solutions, I just modified a function I saw in
> this thread:
>
> (defun make-capture-frame ()
> "Create a new frame and run org-capture."
> (interactive)
> (make-frame '((name . "capture")))
> (select-frame-by-name "capture")
> (delete-other-windows)
> (flet ((switch-to-buffer-other-window (buf) (switch-to-buffer
> buf)))
> (org-capture)))
>
> The culprit is switch-to-buffer-other-window that ultimately gets called by
> org-capture so I just reassign it temporarily to switch-to-buffer.
This is working great, thanks a lot!
Alan