From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastian Rose Subject: Re: Embedding org-syntax in program source Date: Wed, 14 Apr 2010 14:39:56 +0200 Message-ID: <87633u1a3n.fsf@gmx.de> References: <871vejjsps.fsf@gmail.com> <87k4sbrqdf.fsf@stats.ox.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O21t6-0003mI-8z for emacs-orgmode@gnu.org; Wed, 14 Apr 2010 08:40:12 -0400 Received: from [140.186.70.92] (port=40500 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O21t4-0003lU-I4 for emacs-orgmode@gnu.org; Wed, 14 Apr 2010 08:40:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O21t2-0001yo-Lu for emacs-orgmode@gnu.org; Wed, 14 Apr 2010 08:40:10 -0400 Received: from mail.gmx.net ([213.165.64.20]:36480) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1O21t2-0001xu-5c for emacs-orgmode@gnu.org; Wed, 14 Apr 2010 08:40:08 -0400 In-Reply-To: (LanX's message of "Wed, 14 Apr 2010 01:54:13 +0200") 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: LanX Cc: Dan Davison , emacs-orgmode@gnu.org Hi, I think there's no need for Org-mode in programming modes. I see Org-mode as emacs' programming mode for plain text. LanX writes: > my idea for the beginning was to extend my codes with org-modes folding, > linking and some TODO features in perl comments. Maybe automatically > switching the mode when the cursor is entering/leaving comments. It's all there! For folding I use hs-minor-mode, for linking I still stick with some old keyboard shortcuts here: * `H-o o' => 'org-open-at-point-global * `H-o l' => 'org-insert-link-global * `C-c l' => 'org-store-link * `F3' => 'find-file-at-point When in emacs-lisp mode, it will open the appropriate *.el file when on the symbol, no matter where I store htmlize.el on my system: (require 'htmlize) In c-mode, place point on unistd.h and press F3 to open /usr/include/unistd.h: #include But it will find relative paths, too. * `M-up' => 'backward-page * `M-down' => 'forward-page `C-q C-l' inserts the formfeed. I tend to divide source files into pages and group functions, classes, methods that way. Does not work in PHP, :-/ PHP does not consider ^L a whitespace character...but those guys don't even consider it a bug :-D * `M-+' => 'hs-toggle-hiding Finally, here's your fast and simple folding. All these shortcuts work in comments, too. >> And relying on an extra step for code generation is dangerous... I'm a control freak myself - that's why I use emacs in the end :-) Best wishes Sebastian