emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Patrick Drechsler <patrick@pdrechsler.de>
To: emacs-orgmode@gnu.org
Subject: Re: usage of bgein_src in 'Literal examples' section
Date: Sat, 07 Jun 2008 15:44:29 +0200	[thread overview]
Message-ID: <8763slbbr6.fsf@pdrechsler.de> (raw)
In-Reply-To: 9592BB6CDB1CEB48826BE86ACD71FA996ABF5B@kwik.ic.uva.nl

"Dominik, C." <C.Dominik@uva.nl> writes:

>> Bernt Hansen <bernt@norang.ca> writes:
>>
>>> Patrick Drechsler <patrick@pdrechsler.de> writes:
>>>
>>>> But how do I find out which is the correct string for the Emacs mode?
>>>>
>>>> Is there a `M-x describe-??' method?
>>>
>>
>>> There's a variable 'auto-mode-alist' (C-h v auto-mode-alist) which
>>> lists the mappings of filenames to modes.
>>
>> Thank Bernt, this the the variable I was looking for!
>
> You can also load the file into Emacs and then check the value of the
> variable `major-mode' in that buffer.  It will be c-mode or org-mode
> or whatever.  From this value, just strig the "-mode" and you have the
> value you need to use in the begin_src line.

This also works fine, thanks for your feedback Dominik. As mentioned in
a previous mail I got a bit confused between different emacs buidls on
my machine, sorry for the noise.

Cheers,

Patrick  
-- 
1 + 1 = 3 for large values of 1 and small values of 3. ;-)

      reply	other threads:[~2008-06-07 13:44 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-04 22:21 usage of bgein_src in 'Literal examples' section Patrick Drechsler
2008-06-05  0:30 ` Bernt Hansen
2008-06-05  1:40   ` Patrick Drechsler
2008-06-05  1:58     ` Bernt Hansen
2008-06-06 10:39       ` Patrick Drechsler
2008-06-06 11:27         ` Dominik, C.
2008-06-07 13:44           ` Patrick Drechsler [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=8763slbbr6.fsf@pdrechsler.de \
    --to=patrick@pdrechsler.de \
    --cc=emacs-orgmode@gnu.org \
    /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).