From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thomas S. Dye" Subject: Re: Re: Orgmode + other modes for outlining and studying. Date: Fri, 8 Jan 2010 06:05:46 -1000 Message-ID: References: <1e5bcefd1001071521k17705476p27809506dfb36fea@mail.gmail.com> <87r5q156de.fsf@mundaneum.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NTHLb-0005yY-Ij for emacs-orgmode@gnu.org; Fri, 08 Jan 2010 11:05:59 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NTHLX-0005rH-EX for emacs-orgmode@gnu.org; Fri, 08 Jan 2010 11:05:59 -0500 Received: from [199.232.76.173] (port=47109 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NTHLX-0005qz-AQ for emacs-orgmode@gnu.org; Fri, 08 Jan 2010 11:05:55 -0500 Received: from outbound-mail-11.bluehost.com ([69.89.18.111]:58618) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1NTHLW-0004hd-Cy for emacs-orgmode@gnu.org; Fri, 08 Jan 2010 11:05:55 -0500 In-Reply-To: <87r5q156de.fsf@mundaneum.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: =?ISO-8859-1?Q?S=E9bastien_Vauban?= Cc: emacs-orgmode@gnu.org Hi Seb and Marcelo, Currently, java isn't on the list of Org-babel supported languages, so =20= I don't know if Seb's solution will work out of the box. Org-babel =20 has a facility for adding new language support. A java addition would =20= 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 =20 Marcelo describes. I use it this way myself with python. Comments =20 are distinguished from code very cleanly. In effect, you end up with =20= a literate program. All the best, Tom On Jan 7, 2010, at 10:49 PM, S=E9bastien 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 =20 >> file, put a >> * Code headline, paste the code in there and start making notes =20 >> below or in >> the code (as comments). It is extremelly fast and efficient to do =20 >> something >> like that, things just flow. >> >> What I'd like to know is if there's a way to have, for example, =20 >> orgmode + >> javascript-mode, so that I can get syntax-highlighting/coloring on =20= >> the >> pasted javascript code. I've tried with javascript mode, but since =20= >> it is a >> major mode, it just kills org and all its goodies, and I don't want =20= >> that. >> >> Is there a way to have two major modes at the same time, such as =20 >> 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 =20= > the > block. > > Best regards, > Seb > > --=20 > S=E9bastien 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