From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kyle Meyer Subject: Re: set modes for org-edit-special (elisp block) Date: Sun, 24 Jan 2016 12:50:20 -0500 Message-ID: <874me2989v.fsf@kyleam.com> References: <87r3h74kf2.fsf@jupiter.lan> <8760yjpmnl.fsf@kyleam.com> <87lh7e5190.fsf@jupiter.lan> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50048) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aNOnz-000530-9D for emacs-orgmode@gnu.org; Sun, 24 Jan 2016 12:50:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aNOnv-00005V-8v for emacs-orgmode@gnu.org; Sun, 24 Jan 2016 12:50:27 -0500 Received: from pb-smtp0.int.icgroup.com ([208.72.237.35]:63031 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aNOnu-00005D-UW for emacs-orgmode@gnu.org; Sun, 24 Jan 2016 12:50:23 -0500 In-Reply-To: <87lh7e5190.fsf@jupiter.lan> (Stefan Huchler's message of "Sun, 24 Jan 2016 18:35:39 +0100") 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Stefan Huchler Cc: emacs-orgmode@gnu.org Stefan Huchler writes: > Kyle Meyer writes: > >> >> Looks like you've got the right variable, but the key should be the >> language name and the value should be major mode you want. >> >> ("elisp" . xah-emacs-lisp) > > I changed it a few times and I think I had it this way first, do I have > to reload org after it? I closed the file and reopened it did not help. Once you've modify org-src-lang-modes, it should work. Since I don't have xah-emacs-lisp-mode installed, I've just tested it with python-mode. (add-to-list 'org-src-lang-modes '("elisp" . python)) After evaluating above, org-edit-special opens up #+begin_src elisp import sys #+end_src in python-mode. -- Kyle