unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* strike-through text in enriched-mode
@ 2007-11-20 19:34 billy
  0 siblings, 0 replies; only message in thread
From: billy @ 2007-11-20 19:34 UTC (permalink / raw)
  To: help-gnu-emacs

Hello all,
I need to create strike-through text and save it in a file using
enriched-mode.
It seems like an obvious task so maybe I'm over-looking something, but
here's where I'm at:

in my .emacs,
(defface strikethrough '((t (:strike-through t))))

This works, I can access it with M-o (O)ther, strikethrough. But it
only sets the face for the current buffer, enriched-mode won't save
any meta info.

I'm unsure of how to access enriched-mode definitions in my .emacs, so
I poked around in ./emacs/lisp/textmodes/enriched.el,
In (defar enriched-translations), I added my new face "strikethrough"
but it would not save out.  tried creating a new defface in that file
but that didn't work either.

What I eventually did just so I could keep working was to change the
defface "excerpt" from (:slant italic) to (:strike-through).
I know this is a horrible way to do it so I'm looking for a little
guidance.

Also, how do you change the key binding for this face to something
like M-o (S)trikeout?
Thanks in advance.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-11-20 19:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-20 19:34 strike-through text in enriched-mode billy

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