From mboxrd@z Thu Jan 1 00:00:00 1970 From: edgar@openmail.cc Subject: Re: Change mode in org-edit-special Date: Sat, 03 Feb 2018 19:56:43 +0000 Message-ID: References: <0c95ccbebec16b0fe5f6a4558c444a9b@openmail.cc> <346DAC21-926F-420B-86A9-2F2EA3FDCDF5@ucsd.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40635) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ei3w1-0008Ah-0O for emacs-orgmode@gnu.org; Sat, 03 Feb 2018 14:57:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ei3vx-0001bf-VV for emacs-orgmode@gnu.org; Sat, 03 Feb 2018 14:57:13 -0500 Received: from onethreetwo.vfemail.net ([199.16.11.132]:54904 helo=vfemail.net) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ei3vx-0001a3-PW for emacs-orgmode@gnu.org; Sat, 03 Feb 2018 14:57:09 -0500 In-Reply-To: <346DAC21-926F-420B-86A9-2F2EA3FDCDF5@ucsd.edu> 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: "Berry, Charles" Cc: emacs-orgmode@gnu.org On 2018-02-02 18:07, Berry, Charles wrote: >> 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 Thanks. I will try :) ------------------------------------------------- ONLY AT VFEmail! - Use our Metadata Mitigator to keep your email out of the NSA's hands! $24.95 ONETIME Lifetime accounts with Privacy Features! 15GB disk! No bandwidth quotas! Commercial and Bulk Mail Options!