emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] babel "language" for conf-mode?


From: Eric Abrahamsen
Subject: Re: [O] babel "language" for conf-mode?
Date: Tue, 07 Oct 2014 15:07:05 +0800
User-agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux)

address@hidden (Thomas S. Dye) writes:

> Aloha Eric,
>
> My guess is that you'll need to define conf-unix as a language.  It
> might be easy since evaluation isn't needed.
>
> See,
> http://orgmode.org/w/worg.git/blob/HEAD:/org-contrib/babel/ob-template.el

Thanks! I looked through that, and it didn't quite seem to do what I
wanted, but it was enough to lead me to `org-src-lang-modes', which I
think is the right tree to bark up. I just added '("conf-unix" .
conf-unix) to that option, and gave C-' a whirl on a source block, and
it nearly worked! I think with a little futzing around it will turn out
to be fairly simply.

Thanks,
Eric

> All the best,
> Tom
>
> Eric Abrahamsen <address@hidden> writes:
>
>> I'm doing a blog post on various computer configuration stuff, including
>> lengthy excerpts from configuration files. It would be kind of nice to
>> export the HTML so that the :htmlize-source option also recognized these
>> chunks, and highlighted them correctly. So instead of wrapping the
>> excerpts in
>>
>> #+BEGIN_EXAMPLE
>>
>> I could wrap them in
>>
>> #+BEGIN_SOURCE conf-unix
>>
>> And get highlighting a la conf-unix-mode.
>>
>> It's not quite a babel "language", since evaluation wouldn't do
>> anything, but is there a way to just get the highlighting?
>>
>> Thanks!
>> Eric
>>
>>
>>




reply via email to

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