all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kyle Meyer <kyle@kyleam.com>
To: Stefan Huchler <stefan.huchler@mail.de>
Cc: emacs-orgmode@gnu.org
Subject: Re: set modes for org-edit-special (elisp block)
Date: Sun, 24 Jan 2016 12:50:20 -0500	[thread overview]
Message-ID: <874me2989v.fsf@kyleam.com> (raw)
In-Reply-To: <87lh7e5190.fsf@jupiter.lan> (Stefan Huchler's message of "Sun, 24 Jan 2016 18:35:39 +0100")

Stefan Huchler <stefan.huchler@mail.de> writes:

> Kyle Meyer <kyle@kyleam.com> 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

  reply	other threads:[~2016-01-24 17:50 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-24  5:26 set modes for org-edit-special (elisp block) Stefan Huchler
2016-01-24  5:33 ` Kyle Meyer
2016-01-24 17:35   ` Stefan Huchler
2016-01-24 17:50     ` Kyle Meyer [this message]
2016-01-25 13:05     ` Alan Schmitt
2016-01-25 15:11       ` Kyle Meyer
2016-01-25 15:45         ` Alan Schmitt
2016-01-25 17:32           ` Kyle Meyer
2016-01-25 17:37           ` Nick Dokos
2016-01-26 10:23             ` Alan Schmitt

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

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

  git send-email \
    --in-reply-to=874me2989v.fsf@kyleam.com \
    --to=kyle@kyleam.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=stefan.huchler@mail.de \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.