From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Sean Richards" Newsgroups: gmane.emacs.help Subject: Re: turning off underlining, bold, all faces Date: Sat, 26 Mar 2005 14:07:39 +1200 Organization: Xtra Message-ID: <87eke3f9ck.fsf@munin.valhalla.net> References: Reply-To: sean_news@myrealbox.com NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1111803030 5470 80.91.229.2 (26 Mar 2005 02:10:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 26 Mar 2005 02:10:30 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Mar 26 03:10:30 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DF0jg-0000MH-Em for geh-help-gnu-emacs@m.gmane.org; Sat, 26 Mar 2005 03:09:13 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DF0zG-0000Tm-T4 for geh-help-gnu-emacs@m.gmane.org; Fri, 25 Mar 2005 21:25:18 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!tethys.csu.net!arclight.uoregon.edu!enews.sgi.com!news.xtra.co.nz!53ab2750!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:87QIIoHWD1JTBTBhJJVbRR+X4UU= Original-Lines: 30 Original-NNTP-Posting-Host: 203.96.104.17 Original-X-Complaints-To: abuse@xtra.co.nz Original-X-Trace: news.xtra.co.nz 1111802865 203.96.104.17 (Sat, 26 Mar 2005 14:07:45 NZST) Original-NNTP-Posting-Date: Sat, 26 Mar 2005 14:07:45 NZST Original-Xref: shelby.stanford.edu gnu.emacs.help:129623 Original-To: help-gnu-emacs@gnu.org 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 X-MailScanner-To: geh-help-gnu-emacs@m.gmane.org Xref: news.gmane.org gmane.emacs.help:25174 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:25174 karl@freefriends.org (Karl Berry) writes: > I mostly use Emacs (21.3) in tty mode. I've tried various terminal > types, makes no apparent difference; currently using "xterm-color" for > no real reason. I would like to turn off all faces, i.e., underlining, > bold, and other such "enhancements". (I already don't have color, > despite the terminal type, and I'm happy about that.) I use the following elisp to turn off bold faces (defun unbold-all-faces () "Clear the `bold' flag from all faces." (interactive) (dolist (f (face-list)) (if (face-bold-p f) (set-face-bold-p f nil)))) (add-hook 'font-lock-mode-hook (lambda () (unbold-all-faces))) You could expand this for underline, etc. I found this in gnu.emacs.help a few years ago, here is the Message ID of the original posting 87sn1x5clv.fsf@shadizar.dyndns.org Cheers, Sean -- "Hver sin smak", sa vintapperen, han drakk mens de andre sloss."