From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: billy Newsgroups: gmane.emacs.help Subject: strike-through text in enriched-mode Date: Tue, 20 Nov 2007 11:34:35 -0800 (PST) Organization: http://groups.google.com Message-ID: <7249702b-07f2-4f0b-b41e-25aa639993a1@l1g2000hsa.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1195598059 26043 80.91.229.12 (20 Nov 2007 22:34:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 20 Nov 2007 22:34:19 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Nov 20 23:34:24 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Iubej-0003K2-8I for geh-help-gnu-emacs@m.gmane.org; Tue, 20 Nov 2007 23:33:21 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IubeV-0004GL-Fv for geh-help-gnu-emacs@m.gmane.org; Tue, 20 Nov 2007 17:33:07 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!l1g2000hsa.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 27 Original-NNTP-Posting-Host: 65.97.4.245 Original-X-Trace: posting.google.com 1195587275 11849 127.0.0.1 (20 Nov 2007 19:34:35 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 20 Nov 2007 19:34:35 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: l1g2000hsa.googlegroups.com; posting-host=65.97.4.245; posting-account=TwNLHQoAAAA0SJTAxCystcDmCwswy0K3 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071025 Firefox/2.0.0.9,gzip(gfe),gzip(gfe) Content-Disposition: inline Original-Xref: shelby.stanford.edu gnu.emacs.help:153940 X-Mailman-Approved-At: Tue, 20 Nov 2007 17:32:50 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:49377 Archived-At: 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.