emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric S Fraga <e.fraga@ucl.ac.uk>
To: Stefan Janik <sjanjal@web.de>
Cc: emacs-orgmode@gnu.org
Subject: Re: Implement a new emphasis style to hide text
Date: Thu, 01 Dec 2011 10:29:48 +0000	[thread overview]
Message-ID: <87zkfck2jn.fsf@pinto.chemeng.ucl.ac.uk> (raw)
In-Reply-To: <loom.20111130T213716-852@post.gmane.org> (Stefan Janik's message of "Wed, 30 Nov 2011 21:02:27 +0000 (UTC)")

Stefan Janik <sjanjal@web.de> writes:

> Hello, 
> for some purposes I need to hide some words. (It would help to memorize these
> words). In the enriched mode I can do this just by marking the words and
> choosing M-x facemenu-set-background and then typing "black" for the "Background
> color". 
>
> In the org-mode the enriched mode doesn't work. 
>
> A perfect solution for me would be a new emphasis style: 
> Maybe something like $a hidden text.$ --> $JUSTABLACKBOX$
> (like the _underline style_ ). 
> How can I do that? (Or any other suggestions?)
>  
> Thanks.
>
> Best regard, Stephan 

Have a look at

,----[ C-h v org-emphasis-alist RET ]
| org-emphasis-alist is a variable defined in `org.el'.
| Its value is shown below.
| 
| Documentation:
| Special syntax for emphasized text.
| Text starting and ending with a special character will be emphasized, for
| example *bold*, _underlined_ and /italic/.  This variable sets the marker
| characters, the face to be used by font-lock for highlighting in Org-mode
| Emacs buffers, and the HTML tags to be used for this.
| For LaTeX export, see the variable `org-export-latex-emphasis-alist'.
| For DocBook export, see the variable `org-export-docbook-emphasis-alist'.
| Use customize to modify this, or restart Emacs after changing it.
| 
| You can customize this variable.
| 
| Value: (("*" bold "<b>" "</b>")
|  ("/" italic "<i>" "</i>")
|  ("_" underline "<span style=\"text-decoration:underline;\">" "</span>")
|  ("=" org-code "<code>" "</code>" verbatim)
|  ("~" org-verbatim "<code>" "</code>" verbatim)
|  ("+"
|   (:strike-through t)
|   "<del>" "</del>")
|  ("@" org-warning "<b>" "</b>"))
| 
| Original value was 
| (("*" bold "<b>" "</b>")
|  ("/" italic "<i>" "</i>")
|  ("_" underline "<span style=\"text-decoration:underline;\">" "</span>")
|  ("=" org-code "<code>" "</code>" verbatim)
|  ("~" org-verbatim "<code>" "</code>" verbatim)
|  ("+"
|   (:strike-through t)
|   "<del>" "</del>"))
`----

You can define your own syntax (see my addition for @) with an
associated face (second term in each list).  The face could be one which
/hides/ the text, as you desire.

HTH,
eric

-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.90.1
: using Org-mode version 7.7 (release_7.7.615.g02c26)

      reply	other threads:[~2011-12-01 10:30 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-20 11:18 [PATCH] Add customisable face for inlinetasks Suvayu Ali
2011-08-24  8:39 ` Bastien
2011-08-24 11:38   ` Suvayu Ali
2011-08-24 13:23     ` Bastien
2011-11-30 21:02 ` Implement a new emphasis style to hide text Stefan Janik
2011-12-01 10:29   ` Eric S Fraga [this message]

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=87zkfck2jn.fsf@pinto.chemeng.ucl.ac.uk \
    --to=e.fraga@ucl.ac.uk \
    --cc=emacs-orgmode@gnu.org \
    --cc=sjanjal@web.de \
    /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).