From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: Language identifiers Date: Mon, 21 May 2012 08:54:58 -0400 Message-ID: <87hav9wv6l.fsf@gmx.com> References: <86r4uf9d5f.fsf@mercure.progiciels-bpi.ca> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:40969) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SWU17-0005Bj-HX for emacs-orgmode@gnu.org; Mon, 21 May 2012 10:55:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SWU10-0003PO-27 for emacs-orgmode@gnu.org; Mon, 21 May 2012 10:55:25 -0400 Received: from mailout-us.gmx.com ([74.208.5.67]:38268) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1SWU0z-0003No-QU for emacs-orgmode@gnu.org; Mon, 21 May 2012 10:55:17 -0400 In-Reply-To: <86r4uf9d5f.fsf@mercure.progiciels-bpi.ca> (=?utf-8?Q?=22Fran?= =?utf-8?Q?=C3=A7ois?= Pinard"'s message of "Sun, 20 May 2012 09:48:28 -0400") 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: =?utf-8?Q?Fran=C3=A7ois?= Pinard Cc: emacs-orgmode@gnu.org > > - 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