Stefan Janik <sjan...@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)