emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Andreas Röhler" <andreas.roehler@easy-emacs.de>
To: emacs-orgmode@gnu.org
Subject: Re: how to best make characters invisible in a org-derived mode
Date: Wed, 01 May 2013 09:43:13 +0200	[thread overview]
Message-ID: <5180C791.2050008@easy-emacs.de> (raw)
In-Reply-To: <517B462D.5010408@gmail.com>

Am 27.04.2013 05:29, schrieb Christian Wittern:
> Hi orgers,
>
> In a mode derived from org-mode, I would like to hide some characters with a special function to make the display cleaner. There are two cases:
>   - special characters that should be always invisible
>   - strings matched by a regex that should be invisible
>
> I would be glad for any pointers or ideas on how to implement this, either by piggy-packing on org-mode code or by using generic Emacs features.
>
> All the best,
>
> Christian
>

Hi,

maybe have a look how

ar-hide-bracketed-in-line-atpt

for example is implemented.

https://launchpad.net/s-x-emacs-werkstatt/
https://launchpad.net/s-x-emacs-werkstatt/trunk/1.3/+download/S-X-Emacs-Werkstatt-1.3.tar.gz

This provides a framework for tasks like this.

HTH,

Andreas

  parent reply	other threads:[~2013-05-01  7:41 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-27  3:29 how to best make characters invisible in a org-derived mode Christian Wittern
2013-04-30 19:37 ` John Hendy
2013-05-01  7:43 ` Andreas Röhler [this message]
2013-05-01 22:58   ` Christian Wittern
2013-05-02  5:49     ` Andreas Röhler

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=5180C791.2050008@easy-emacs.de \
    --to=andreas.roehler@easy-emacs.de \
    --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).