help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Turn off the effects of enclosing in forward slash


From: Reiner Steib
Subject: Re: Turn off the effects of enclosing in forward slash
Date: Thu, 23 Feb 2006 13:09:05 +0100
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux)

On Wed, Feb 22 2006, Harry Putnam wrote:

> I think  I once learned  how to turn  off the way emacs  hides slashes
> when  they are around  a world  like /home/  (Use C-u  g to  view this
> message  if  you don't  see  forward  slashes  around home)  but  have
> forgotten it since it wasn't something that I care about very often.

This is a Gnus issue.  Crosspost & Followup-To: gnu.emacs.gnus

> But every so often it causes me to do trouble shooting of something
> that doesn't need it.

Customize `gnus-emphasis-alist', especially the "Show start and end
patterns" options.

I you don't like to use customize, you could use some modification of
the following code:

--8<---------------cut here---------------start------------->8---
;; keep emphasis characters around after emphasis
(require 'gnus-art)
(unless (fboundp 'gnus-emphasis-custom-with-format)
  ;; In Gnus 5.10.7 or 5.11 this is okay by default.
  (setq gnus-emphasis-alist ; <u8zbs8p6iue.fsf@blackbird-2k.MITRE.ORG>
        (mapcar (lambda (x)
                  (list (car x) (nth 2 x) (nth 2 x) (nth 3 x)))
                gnus-emphasis-alist)))
;; <m3u1lu95u7.fsf@ID-87814.user.dfncis.de>
;; don't do strikethru
(setq gnus-emphasis-alist
      (delq nil
            (mapcar
             (lambda (x)
               (if (eq (car (last x)) 'gnus-emphasis-strikethru)
                   nil
                 x))
             gnus-emphasis-alist)))
(setq gnus-emphasis-alist
      (delq nil (mapcar
                 (lambda (x)
                   (if (eq (car (last x)) 'gnus-emphasis-italic) nil x))
                 gnus-emphasis-alist)))
--8<---------------cut here---------------end--------------->8---

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/


reply via email to

[Prev in Thread] Current Thread [Next in Thread]