From: "Thomas S. Dye" <tsd@tsdye.com>
To: "Sébastien Vauban" <wxhgmqzgwmuf@spammotel.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Re: Orgmode + other modes for outlining and studying.
Date: Fri, 8 Jan 2010 06:05:46 -1000 [thread overview]
Message-ID: <F1B99325-5B59-49F0-A9FD-7E6FECF5CBF6@tsdye.com> (raw)
In-Reply-To: <87r5q156de.fsf@mundaneum.com>
Hi Seb and Marcelo,
Currently, java isn't on the list of Org-babel supported languages, so
I don't know if Seb's solution will work out of the box. Org-babel
has a facility for adding new language support. A java addition would
be great. Seb, if you have this working could you share your approach?
I agree with Seb that Org-babel is useful in the situation that
Marcelo describes. I use it this way myself with python. Comments
are distinguished from code very cleanly. In effect, you end up with
a literate program.
All the best,
Tom
On Jan 7, 2010, at 10:49 PM, Sébastien Vauban wrote:
> Hi Marcelo,
>
> Marcelo de Moraes Serpa wrote:
>> Orgmode files are great for studying, for example, code.
>>
>> Everytime I need to study some unknown code, I create a new org
>> file, put a
>> * Code headline, paste the code in there and start making notes
>> below or in
>> the code (as comments). It is extremelly fast and efficient to do
>> something
>> like that, things just flow.
>>
>> What I'd like to know is if there's a way to have, for example,
>> orgmode +
>> javascript-mode, so that I can get syntax-highlighting/coloring on
>> the
>> pasted javascript code. I've tried with javascript mode, but since
>> it is a
>> major mode, it just kills org and all its goodies, and I don't want
>> that.
>>
>> Is there a way to have two major modes at the same time, such as
>> org +
>> js-mode?
>
> Are you aware of Org-babel's SRC blocks?
>
> #+BEGIN_SRC java
> bla bla
> #+END_SRC
>
> And, to work on that source block, just hit C-c C-c when point is in
> the
> block.
>
> Best regards,
> Seb
>
> --
> Sébastien Vauban
>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
next prev parent reply other threads:[~2010-01-08 16:05 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-07 23:21 Orgmode + other modes for outlining and studying Marcelo de Moraes Serpa
2010-01-08 0:07 ` Manish
2010-01-08 0:21 ` Eric Schulte
2010-01-08 0:27 ` Greg Newman
2010-01-08 3:25 ` [Orgmode] " Eric Schulte
2010-01-08 8:49 ` Sébastien Vauban
2010-01-08 16:05 ` Thomas S. Dye [this message]
2010-01-09 20:38 ` Sébastien Vauban
2010-01-09 21:22 ` Eric Schulte
2010-01-09 22:52 ` Thomas S. Dye
2010-01-10 15:46 ` Eric Schulte
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=F1B99325-5B59-49F0-A9FD-7E6FECF5CBF6@tsdye.com \
--to=tsd@tsdye.com \
--cc=emacs-orgmode@gnu.org \
--cc=wxhgmqzgwmuf@spammotel.com \
/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.