unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH] packages/excorporate: org: Bind q to bury-buffer
@ 2016-03-31 23:25 Mitchel Humpherys
  2016-04-01  2:28 ` Thomas Fitzsimmons
  0 siblings, 1 reply; 4+ messages in thread
From: Mitchel Humpherys @ 2016-03-31 23:25 UTC (permalink / raw)
  To: emacs-devel, Thomas Fitzsimmons; +Cc: mitch.special

It's handy to be able to bury the exporporate org buffer with a single
key.  Bind `q' to bury buffer as is convention in many other read-only
buffers.
---

Not sure if this is the right place to send Elpa patches...  There's
documentation for submitting new packages to Elpa but no much for
contributing patches to Elpa packages...

---
 packages/excorporate/excorporate-org.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/packages/excorporate/excorporate-org.el b/packages/excorporate/excorporate-org.el
index 73aaa52b6d43..2e9c725cab50 100644
--- a/packages/excorporate/excorporate-org.el
+++ b/packages/excorporate/excorporate-org.el
@@ -35,6 +35,8 @@
   (with-current-buffer (get-buffer-create excorporate-org-buffer-name)
       (setq buffer-read-only t)
       (org-mode)
+      (use-local-map (copy-keymap org-mode-map))
+      (local-set-key "q" 'bury-buffer)
       (display-buffer (current-buffer))
       (let ((inhibit-read-only t))
 	(delete-region (point-min) (point-max))
-- 
Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project




^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] packages/excorporate: org: Bind q to bury-buffer
  2016-03-31 23:25 [PATCH] packages/excorporate: org: Bind q to bury-buffer Mitchel Humpherys
@ 2016-04-01  2:28 ` Thomas Fitzsimmons
  2016-04-01 15:14   ` Mitchel Humpherys
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Fitzsimmons @ 2016-04-01  2:28 UTC (permalink / raw)
  To: Mitchel Humpherys; +Cc: emacs-devel

Hi Mitchel,

Mitchel Humpherys <mitch.special@gmail.com> writes:

> It's handy to be able to bury the exporporate org buffer with a single
> key.  Bind `q' to bury buffer as is convention in many other read-only
> buffers.

Thanks.  I just tried the patch.  I'd prefer quit-window to bury-buffer.
Would that work for you?

Thomas



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] packages/excorporate: org: Bind q to bury-buffer
  2016-04-01  2:28 ` Thomas Fitzsimmons
@ 2016-04-01 15:14   ` Mitchel Humpherys
  2016-04-02  2:07     ` Thomas Fitzsimmons
  0 siblings, 1 reply; 4+ messages in thread
From: Mitchel Humpherys @ 2016-04-01 15:14 UTC (permalink / raw)
  To: Thomas Fitzsimmons; +Cc: emacs-devel

On Thu, Mar 31 2016 at 10:28:49 PM, Thomas Fitzsimmons <fitzsim@fitzsim.org> wrote:
t> Hi Mitchel,
>
> Mitchel Humpherys <mitch.special@gmail.com> writes:
>
>> It's handy to be able to bury the exporporate org buffer with a single
>> key.  Bind `q' to bury buffer as is convention in many other read-only
>> buffers.
>
> Thanks.  I just tried the patch.  I'd prefer quit-window to bury-buffer.
> Would that work for you?

Yes, that's a better option.

-- 
Mitch



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] packages/excorporate: org: Bind q to bury-buffer
  2016-04-01 15:14   ` Mitchel Humpherys
@ 2016-04-02  2:07     ` Thomas Fitzsimmons
  0 siblings, 0 replies; 4+ messages in thread
From: Thomas Fitzsimmons @ 2016-04-02  2:07 UTC (permalink / raw)
  To: Mitchel Humpherys; +Cc: emacs-devel

Mitchel Humpherys <mitch.special@gmail.com> writes:

> On Thu, Mar 31 2016 at 10:28:49 PM, Thomas Fitzsimmons <fitzsim@fitzsim.org> wrote:
> t> Hi Mitchel,
>>
>> Mitchel Humpherys <mitch.special@gmail.com> writes:
>>
>>> It's handy to be able to bury the exporporate org buffer with a single
>>> key.  Bind `q' to bury buffer as is convention in many other read-only
>>> buffers.
>>
>> Thanks.  I just tried the patch.  I'd prefer quit-window to bury-buffer.
>> Would that work for you?
>
> Yes, that's a better option.

Released in Excorporate 0.7.3, which will be published to GNU ELPA
tonight.

Thanks,
Thomas



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-04-02  2:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-31 23:25 [PATCH] packages/excorporate: org: Bind q to bury-buffer Mitchel Humpherys
2016-04-01  2:28 ` Thomas Fitzsimmons
2016-04-01 15:14   ` Mitchel Humpherys
2016-04-02  2:07     ` Thomas Fitzsimmons

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.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).