From: Tassilo Horn <tassilo@member.fsf.org>
To: emacs-orgmode@gnu.org
Subject: Re: Is there some kind of verbatim environment for org?
Date: Thu, 09 Oct 2008 16:53:33 +0200 [thread overview]
Message-ID: <87fxn5n7ki.fsf@baldur.tsdh.de> (raw)
In-Reply-To: 87wsghj3kh.fsf@kassiopeya.MSHEIMNETZ
Sebastian Rose <sebastian_rose@gmx.de> writes:
Hi Sebastian,
> with a current version of Org-mode you may press C-c ' to create such
> a region or edit an existing one. Not shure when this feature made it
> into org. But 6.09 has this feature.
Here it is:
,----[ C-h k C-c ' ]
| C-c ' runs the command org-edit-special, which is an interactive compiled Lisp
| function in `org.el'.
|
| It is bound to C-c ', <menu-bar> <Org> <Editing> <Edit Source Example>,
| <menu-bar> <Tbl> <Calculate> <Edit Formulas>.
|
| (org-edit-special)
|
| Call a special editor for the stuff at point.
| When at a table, call the formula editor with `org-table-edit-formulas'.
| When at the first line of an src example, call `org-edit-src-code'.
| When in an #+include line, visit the include file. Otherwise call
| `ffap' to visit the file at point.
`----
I guess, that's what you mean. But at least in my version, that's no
too big improvement. Let's say I have this:
#+BEGIN_SRC artist
+-----+ (Abb. 23b)
ENABLE------------------| & |
+-----+ | |
| >=1 | +-----| |---RUN
| | | | |
X-----| |-----+ +-----+
Y-----| |
RUN---| |
+-----+
#+END_SRC
If I hit `C-c '' in that block, it'll open the graphic in artist mode.
That's great, but still the graphic is font-locked like in the
screenshot of my previous posting, because org thinks it's a table.
And TAB in the first line moves point one line up and messages "Should
not happen...". On other positions in the block, it indents like in
text-mode, and on even other positions it acts like in org tables (Jump
to the next "cell").
While I can live with TAB freaking out (Hey, `C-c '' switches to artist
mode. Yay!), the broken font-locking is disturbing me. Is it possible
to fontify everything in #+BEGIN...#+END blocks with some special face
which takes precedence over the usual org font-locking?
Bye,
Tassilo
next prev parent reply other threads:[~2008-10-09 14:53 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-09 11:08 Is there some kind of verbatim environment for org? Tassilo Horn
2008-10-09 13:33 ` Sebastian Rose
2008-10-09 14:53 ` Tassilo Horn [this message]
2008-10-09 15:10 ` Eric Schulte
2008-10-09 15:41 ` Tassilo Horn
2008-10-09 16:21 ` Eric Schulte
2008-10-09 19:22 ` Tassilo Horn
2008-10-09 20:08 ` Eric Schulte
2008-10-09 22:15 ` Sebastian Rose
2008-10-10 6:57 ` Tassilo Horn
2008-10-09 15:51 ` Sebastian Rose
2008-10-09 16:35 ` Carsten Dominik
2008-10-09 19:19 ` Tassilo Horn
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=87fxn5n7ki.fsf@baldur.tsdh.de \
--to=tassilo@member.fsf.org \
--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).