From: Mitchel Humpherys <mitch.special@gmail.com>
To: emacs-devel@gnu.org, Thomas Fitzsimmons <fitzsim@fitzsim.org>
Cc: mitch.special@gmail.com
Subject: [PATCH] packages/excorporate: org: Bind q to bury-buffer
Date: Thu, 31 Mar 2016 16:25:08 -0700 [thread overview]
Message-ID: <1459466708-10994-1-git-send-email-mitch.special@gmail.com> (raw)
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
next reply other threads:[~2016-03-31 23:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-31 23:25 Mitchel Humpherys [this message]
2016-04-01 2:28 ` [PATCH] packages/excorporate: org: Bind q to bury-buffer Thomas Fitzsimmons
2016-04-01 15:14 ` Mitchel Humpherys
2016-04-02 2:07 ` Thomas Fitzsimmons
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1459466708-10994-1-git-send-email-mitch.special@gmail.com \
--to=mitch.special@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=fitzsim@fitzsim.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.