[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] Embedding org-syntax in program source
From: |
Sebastian Rose |
Subject: |
Re: [Orgmode] Embedding org-syntax in program source |
Date: |
Wed, 14 Apr 2010 14:39:56 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
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 <address@hidden> 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 <unistd.h>
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
- [Orgmode] Embedding org-syntax in program source, LanX, 2010/04/13
- Re: [Orgmode] Embedding org-syntax in program source, Eric Schulte, 2010/04/13
- Message not available
- [Orgmode] Embedding org-syntax in program source, LanX, 2010/04/13
- Re: [Orgmode] Embedding org-syntax in program source, Eric Schulte, 2010/04/13
- Re: [Orgmode] Embedding org-syntax in program source, Dan Davison, 2010/04/13
- Re: [Orgmode] Embedding org-syntax in program source, LanX, 2010/04/14
- Re: [Orgmode] Embedding org-syntax in program source,
Sebastian Rose <=
- Re: [Orgmode] Embedding org-syntax in program source, Dan Davison, 2010/04/14
Re: [Orgmode] Embedding org-syntax in program source, Dan Davison, 2010/04/13