* popup org capture window on linux?
@ 2015-07-31 18:19 Xebar Saram
2015-07-31 18:42 ` Xebar Saram
2015-07-31 19:32 ` Josiah Schwab
0 siblings, 2 replies; 6+ messages in thread
From: Xebar Saram @ 2015-07-31 18:19 UTC (permalink / raw)
To: org mode
[-- Attachment #1: Type: text/plain, Size: 255 bytes --]
Hi all. anyone using a separate (or pop up style) org capture window on
linux? im looking for tips on how to bind a key that will bring up a new
emacsclient quickly with the capture window open for quick capturing of
info even when not in emacs
best!
Z
[-- Attachment #2: Type: text/html, Size: 351 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: popup org capture window on linux?
2015-07-31 18:19 popup org capture window on linux? Xebar Saram
@ 2015-07-31 18:42 ` Xebar Saram
2015-07-31 18:50 ` Ken Mankoff
` (2 more replies)
2015-07-31 19:32 ` Josiah Schwab
1 sibling, 3 replies; 6+ messages in thread
From: Xebar Saram @ 2015-07-31 18:42 UTC (permalink / raw)
To: org mode
[-- Attachment #1: Type: text/plain, Size: 602 bytes --]
Hi. it seems like this :
/usr/bin/emacsclient -c -e '(org-capture)'
kinda works with the most annoying issue is that the window dosent close
after cpature (which is what i want). instead i get a previous buffer in
emacs. any idea how to solve that?
Z
On Fri, Jul 31, 2015 at 9:19 PM, Xebar Saram <zeltakc@gmail.com> wrote:
> Hi all. anyone using a separate (or pop up style) org capture window on
> linux? im looking for tips on how to bind a key that will bring up a new
> emacsclient quickly with the capture window open for quick capturing of
> info even when not in emacs
>
> best!
>
> Z
>
>
[-- Attachment #2: Type: text/html, Size: 1198 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: popup org capture window on linux?
2015-07-31 18:42 ` Xebar Saram
@ 2015-07-31 18:50 ` Ken Mankoff
2015-07-31 19:29 ` Haider Rizvi
2015-08-01 2:51 ` Nick Dokos
2 siblings, 0 replies; 6+ messages in thread
From: Ken Mankoff @ 2015-07-31 18:50 UTC (permalink / raw)
To: Xebar Saram; +Cc: org mode
Instead of "-e '(org-capture)'", use that to load a file that does more customization. Re-bind 'C-c C-c' to close frame after invocation. Please post when you have this, I might find it useful. I have similar behavior in the "edit with emacs" web plugin which brings up an emacs frame of an HTML textbox, and then when "C-c C-c" is invoked, closes the frame and re-populates the textbox.
-k.
On 2015-07-31 at 14:42, Xebar Saram <zeltakc@gmail.com> wrote:
> Hi. it seems like this :
>
> /usr/bin/emacsclient -c -e '(org-capture)'
>
> kinda works with the most annoying issue is that the window dosent close
> after cpature (which is what i want). instead i get a previous buffer in
> emacs. any idea how to solve that?
>
> Z
>
>
> On Fri, Jul 31, 2015 at 9:19 PM, Xebar Saram <zeltakc@gmail.com> wrote:
>
>> Hi all. anyone using a separate (or pop up style) org capture window on
>> linux? im looking for tips on how to bind a key that will bring up a new
>> emacsclient quickly with the capture window open for quick capturing of
>> info even when not in emacs
>>
>> best!
>>
>> Z
>>
>>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: popup org capture window on linux?
2015-07-31 18:42 ` Xebar Saram
2015-07-31 18:50 ` Ken Mankoff
@ 2015-07-31 19:29 ` Haider Rizvi
2015-08-01 2:51 ` Nick Dokos
2 siblings, 0 replies; 6+ messages in thread
From: Haider Rizvi @ 2015-07-31 19:29 UTC (permalink / raw)
To: emacs-orgmode
Xebar Saram <zeltakc@gmail.com> writes:
> Hi. it seems like this :
>
> /usr/bin/emacsclient -c -e '(org-capture)'
I have the following for similar purposes:
(defadvice org-capture-finalize (after delete-org-capture-frame activate)
"Advise org-capture-finalize to close the frame if it is the org-capture frame"
(if (equal "org-capture" (frame-parameter nil 'name))
(delete-frame)))
(defun make-orgcapture-frame ()
"Create a new frame and run org-capture."
(interactive)
(make-frame '((name . "org-capture") (width . 80) (height . 16)
(top . 400) (left . 300)
(font . "Consolas-14")
))
(select-frame-by-name "org-capture")
(org-capture))
From a shell (or hotkey), you'll need to kick off:
emacsclient -ne '(make-orgcapture-frame)'
- Haider
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: popup org capture window on linux?
2015-07-31 18:19 popup org capture window on linux? Xebar Saram
2015-07-31 18:42 ` Xebar Saram
@ 2015-07-31 19:32 ` Josiah Schwab
1 sibling, 0 replies; 6+ messages in thread
From: Josiah Schwab @ 2015-07-31 19:32 UTC (permalink / raw)
To: Xebar Saram; +Cc: org mode
Hi Z,
> Hi all. anyone using a separate (or pop up style) org capture window on
> linux? im looking for tips on how to bind a key that will bring up a new
> emacsclient quickly with the capture window open for quick capturing of
> info even when not in emacs
You might be able to re-use a bit of what I do chromium and org-capture.
https://yoshiyahu.org/computing/2013/12/16/org-capture/
Best,
Josiah
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: popup org capture window on linux?
2015-07-31 18:42 ` Xebar Saram
2015-07-31 18:50 ` Ken Mankoff
2015-07-31 19:29 ` Haider Rizvi
@ 2015-08-01 2:51 ` Nick Dokos
2 siblings, 0 replies; 6+ messages in thread
From: Nick Dokos @ 2015-08-01 2:51 UTC (permalink / raw)
To: emacs-orgmode
Xebar Saram <zeltakc@gmail.com> writes:
> Hi. it seems like this :
>
> /usr/bin/emacsclient -c -e '(org-capture)'
>
> kinda works with the most annoying issue is that the window dosent close after cpature (which is what i want). instead i get a previous buffer in emacs. any idea how to solve that?
>
You can add a binding to org-capture-mode-map (tha map that is used to
implement the C-c C-c etc behavior in the capture buffer) to a function
that calls org-capture-finalize and then calls delete-frame.
Something like this added to your .emacs should work (but it's very
lightly tested):
--8<---------------cut here---------------start------------->8---
(require 'org-capture)
(defun my-capture-finalize ()
(interactive)
(org-capture-finalize)
(delete-frame))
(add-hook 'org-capture-mode-hook
(lambda ()
(define-key org-capture-mode-map "\C-c\C-x" (function my-capture-finalize))))
--8<---------------cut here---------------end--------------->8---
>
> On Fri, Jul 31, 2015 at 9:19 PM, Xebar Saram <zeltakc@gmail.com> wrote:
>
> Hi all. anyone using a separate (or pop up style) org capture window on linux? im looking for tips on how to bind a key that will bring up a new emacsclient quickly with the
> capture window open for quick capturing of info even when not in emacs
>
> best!
>
> Z
>
--
Nick
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2015-08-01 2:51 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-31 18:19 popup org capture window on linux? Xebar Saram
2015-07-31 18:42 ` Xebar Saram
2015-07-31 18:50 ` Ken Mankoff
2015-07-31 19:29 ` Haider Rizvi
2015-08-01 2:51 ` Nick Dokos
2015-07-31 19:32 ` Josiah Schwab
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).