From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Berry, Charles" Subject: Re: Change mode in org-edit-special Date: Fri, 2 Feb 2018 18:07:32 +0000 Message-ID: <346DAC21-926F-420B-86A9-2F2EA3FDCDF5@ucsd.edu> References: <0c95ccbebec16b0fe5f6a4558c444a9b@openmail.cc> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43320) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ehflp-0005Rp-3C for emacs-orgmode@gnu.org; Fri, 02 Feb 2018 13:09:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ehfkl-0007le-0M for emacs-orgmode@gnu.org; Fri, 02 Feb 2018 13:09:04 -0500 Received: from iport-acv1-out.ucsd.edu ([132.239.0.176]:18849) by eggs.gnu.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.71) (envelope-from ) id 1ehfkk-0007j2-6X for emacs-orgmode@gnu.org; Fri, 02 Feb 2018 13:07:58 -0500 In-Reply-To: <0c95ccbebec16b0fe5f6a4558c444a9b@openmail.cc> Content-Language: en-US Content-ID: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: "edgar@openmail.cc" Cc: "emacs-orgmode@gnu.org" > On Feb 1, 2018, at 9:07 PM, edgar@openmail.cc wrote: >=20 > 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 i= s created with the mode you want to edit in.=20 Or if you want to edit in that mode only occasionally write a small functio= n that let-binds `org-src-lang-modes` to the value you need and use that fu= nction as needed to create the buffer in that mode. As far as changing major mode while already editing, the responses here mig= ht help: https://emacs.stackexchange.com/questions/21940/avoid-minor-modes-from-turn= ing-off-when-changing-restarting-major-mode HTH, Chuck=