emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Berry, Charles" <ccberry@ucsd.edu>
To: "edgar@openmail.cc" <edgar@openmail.cc>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: Change mode in org-edit-special
Date: Fri, 2 Feb 2018 18:07:32 +0000	[thread overview]
Message-ID: <346DAC21-926F-420B-86A9-2F2EA3FDCDF5@ucsd.edu> (raw)
In-Reply-To: <0c95ccbebec16b0fe5f6a4558c444a9b@openmail.cc>



> On Feb 1, 2018, at 9:07 PM, edgar@openmail.cc wrote:
> 
> Is there a safe way to change mode in an org-edit-special buffer?

The safest thing would be to customize `org-src-lang-modes' so the buffer is created with the mode you want to edit in. 

Or if you want to edit in that mode only occasionally write a small function that let-binds `org-src-lang-modes` to the value you need and use that function as needed to create the buffer in that mode.

As far as changing major mode while already editing, the responses here might help:

https://emacs.stackexchange.com/questions/21940/avoid-minor-modes-from-turning-off-when-changing-restarting-major-mode

HTH,

Chuck

  reply	other threads:[~2018-02-02 18:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-02  5:07 Change mode in org-edit-special edgar
2018-02-02 18:07 ` Berry, Charles [this message]
2018-02-03 19:56   ` edgar

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=346DAC21-926F-420B-86A9-2F2EA3FDCDF5@ucsd.edu \
    --to=ccberry@ucsd.edu \
    --cc=edgar@openmail.cc \
    --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 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).