all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Matthew Lundin <mdl@imapmail.org>
To: "Berry, Charles" <ccberry@health.ucsd.edu>, Bastien <bzg@gnu.org>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: C-c C-c to close the buffer in *Org Src ...* buffers
Date: Fri, 31 Jan 2020 14:01:40 -0600	[thread overview]
Message-ID: <87k1579yzf.fsf@fastmail.fm> (raw)
In-Reply-To: <EE4065FA-F352-4264-AF37-93C99BD87FFB@ucsd.edu>

"Berry, Charles" via "General discussions about Org-mode." <emacs-orgmode@gnu.org> writes:

>> On Jan 31, 2020, at 3:03 AM, Bastien <bzg@gnu.org> wrote:
>> 
>> Hi all,
>> 
>> I'd like to make <C-c C-c> an equivalent to <C-c '> in Org Src
>> buffers so that hitting <C-c C-c> will close the buffer, which seems
>> natural.
>> 
>> WDYT?
>
> Many modes used in org src buffers have C-c C-c in their maps. python,
> latex, c++, shell, R, ...
>
> I often use C-c C-c in R src edit buffers to eval functions and code
> blocks, so this will be an inconvenience for me (and I suspect for
> others).

Agreed. C-c C-c in python-mode is bound to python-shell-send-buffer,
which evaluates the buffer in a running instance of python. I think
<C-c '> has fewer conflicts with existing bindings. 

Matt

  reply	other threads:[~2020-01-31 20:01 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-31 11:03 C-c C-c to close the buffer in *Org Src ...* buffers Bastien
2020-01-31 11:14 ` Fraga, Eric
2020-02-01  9:31   ` Marcin Borkowski
2020-01-31 11:20 ` Neil Jerram
2020-01-31 15:00 ` William Denton
2020-01-31 18:04 ` Berry, Charles via General discussions about Org-mode.
2020-01-31 20:01   ` Matthew Lundin [this message]
2020-02-01  8:48   ` Bastien

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=87k1579yzf.fsf@fastmail.fm \
    --to=mdl@imapmail.org \
    --cc=bzg@gnu.org \
    --cc=ccberry@health.ucsd.edu \
    --cc=emacs-orgmode@gnu.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.