emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* preventing strikethrough, italics and underline fontification
@ 2010-12-08 15:03 Eric Holbrook
  2010-12-19 16:28 ` David Maus
  0 siblings, 1 reply; 3+ messages in thread
From: Eric Holbrook @ 2010-12-08 15:03 UTC (permalink / raw)
  To: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 647 bytes --]

I have several org files that contain simulator command arguments that look
like this:

    +ADTL_ARG+somethingOrOther
or
    /long/path/to/..../somewhere/
or
  _token_to_get_inserted_in_something_

These appear in both headlines and non-headline text. It's pretty
distracting, particularly when i'm trying to put together groups of these
things to build a long command line. Sometimes i have to just switch to
fundamental mode for a while.

Is there a way to inhibit fontification of this kind of thing? It'd be nice
if i could do it on a per-line or per-region basis. Maybe in response to a
tag in the headline? Maybe in response to a property?

[-- Attachment #1.2: Type: text/html, Size: 710 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: preventing strikethrough, italics and underline fontification
  2010-12-08 15:03 preventing strikethrough, italics and underline fontification Eric Holbrook
@ 2010-12-19 16:28 ` David Maus
  2010-12-20 14:13   ` Matt Lundin
  0 siblings, 1 reply; 3+ messages in thread
From: David Maus @ 2010-12-19 16:28 UTC (permalink / raw)
  To: Eric Holbrook; +Cc: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 588 bytes --]

At Wed, 8 Dec 2010 09:03:04 -0600,
Eric Holbrook wrote:
>
> Is there a way to inhibit fontification of this kind of thing? It'd be nice
> if i could do it on a per-line or per-region basis. Maybe in response to a
> tag in the headline? Maybe in response to a property?

No, not that I am aware of.  You might wrap the things in code markers
like:

=_token_to_get_inserted_in_something_=

This prevents the highlighting in the buffer and also protects these
when exporting the file.

HTH,
  -- David
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber.... dmjena@jabber.org
Email..... dmaus@ictsoc.de

[-- Attachment #1.2: Type: application/pgp-signature, Size: 230 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: preventing strikethrough, italics and underline fontification
  2010-12-19 16:28 ` David Maus
@ 2010-12-20 14:13   ` Matt Lundin
  0 siblings, 0 replies; 3+ messages in thread
From: Matt Lundin @ 2010-12-20 14:13 UTC (permalink / raw)
  To: David Maus; +Cc: emacs-orgmode, Eric Holbrook

David Maus <dmaus@ictsoc.de> writes:

> At Wed, 8 Dec 2010 09:03:04 -0600,
> Eric Holbrook wrote:
>>
>> Is there a way to inhibit fontification of this kind of thing? It'd be nice
>> if i could do it on a per-line or per-region basis. Maybe in response to a
>> tag in the headline? Maybe in response to a property?
>
> No, not that I am aware of.  You might wrap the things in code markers
> like:
>
> =_token_to_get_inserted_in_something_=
>
> This prevents the highlighting in the buffer and also protects these
> when exporting the file.

Another option is to wrap the region in an example or source block:

--8<---------------cut here---------------start------------->8---
#+begin_example:
_some_funky_underlined_text
#+end_example
--8<---------------cut here---------------end--------------->8---

If you want to tweak such fontification globally, you can use the
variable org-emphasis-alist.

Best,
Matt

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-12-20 14:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-08 15:03 preventing strikethrough, italics and underline fontification Eric Holbrook
2010-12-19 16:28 ` David Maus
2010-12-20 14:13   ` Matt Lundin

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).