[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] set modes for org-edit-special (elisp block)

From: Kyle Meyer
Subject: Re: [O] set modes for org-edit-special (elisp block)
Date: Sun, 24 Jan 2016 12:50:20 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Stefan Huchler <address@hidden> writes:

> Kyle Meyer <address@hidden> 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

  (add-to-list 'org-src-lang-modes '("elisp" . python))

After evaluating above, org-edit-special opens up

  #+begin_src elisp
    import sys

in python-mode.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]