From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: Implement a new emphasis style to hide text Date: Thu, 01 Dec 2011 10:29:48 +0000 Message-ID: <87zkfck2jn.fsf@pinto.chemeng.ucl.ac.uk> References: <20110820131808.31793978@kuru.homelinux.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:36539) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RW3tw-0005ZZ-ET for emacs-orgmode@gnu.org; Thu, 01 Dec 2011 05:30:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RW3tp-0002Mk-Gy for emacs-orgmode@gnu.org; Thu, 01 Dec 2011 05:30:00 -0500 Received: from vscani-e.ucl.ac.uk ([144.82.108.33]:48542) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RW3tp-0002M7-AA for emacs-orgmode@gnu.org; Thu, 01 Dec 2011 05:29:53 -0500 In-Reply-To: (Stefan Janik's message of "Wed, 30 Nov 2011 21:02:27 +0000 (UTC)") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Stefan Janik Cc: emacs-orgmode@gnu.org Stefan Janik 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 "" "") | ("/" italic "" "") | ("_" underline "" "") | ("=" org-code "" "" verbatim) | ("~" org-verbatim "" "" verbatim) | ("+" | (:strike-through t) | "" "") | ("@" org-warning "" "")) | | Original value was | (("*" bold "" "") | ("/" italic "" "") | ("_" underline "" "") | ("=" org-code "" "" verbatim) | ("~" org-verbatim "" "" verbatim) | ("+" | (:strike-through t) | "" "")) `---- 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)