emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric Schulte <eric.schulte@gmx.com>
To: "François Pinard" <pinard@iro.umontreal.ca>
Cc: emacs-orgmode@gnu.org
Subject: Re: Language identifiers
Date: Mon, 21 May 2012 08:54:58 -0400	[thread overview]
Message-ID: <87hav9wv6l.fsf@gmx.com> (raw)
In-Reply-To: <86r4uf9d5f.fsf@mercure.progiciels-bpi.ca> ("François Pinard"'s message of "Sun, 20 May 2012 09:48:28 -0400")

>
> - The identifier in the left column did not work, but if I change it to
>   the identifier in the right column, the content highlights (in
>   Emacs).  The manual does not list it.
>
>   | config     | conf     |
>   | email      | mail     |
>   | make       | makefile |
>   | postscript | ps       |
>

For code block fontification, Org-mode looks to see if there exists a
major mode with the name lang-mode.  So, the reason some of the above
work, and some don't is because the right columns all name valid major
modes while the left column does not.

There also exists a variable named `org-src-lang-modes' which may be
used to explicitly associate particular language identifiers with
particular modes, so if for example you prefer to use email to mail you
can simply add the following to your config.

    ;; emacs-lisp
    (add-to-list 'org-src-lang-modes (cons "email" mail))

Best,

-- 
Eric Schulte
http://cs.unm.edu/~eschulte

      parent reply	other threads:[~2012-05-21 14:55 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-20 13:48 Language identifiers François Pinard
2012-05-20 17:31 ` Thomas S. Dye
2012-05-20 18:23   ` François Pinard
2012-05-20 18:56     ` Nick Dokos
2012-05-21 14:22       ` François Pinard
2012-05-21 14:34         ` Nick Dokos
2012-05-21 15:17           ` François Pinard
2012-05-22 23:04             ` Bastien
2012-05-21  9:02 ` Sebastien Vauban
2012-05-21 12:54 ` Eric Schulte [this message]

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

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to=87hav9wv6l.fsf@gmx.com \
    --to=eric.schulte@gmx.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=pinard@iro.umontreal.ca \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).