unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Floyd Davidson <floyd@barrow.com>
Subject: Re: . . .
Date: Thu, 12 Feb 2004 18:00:46 -0900	[thread overview]
Message-ID: <874qtv3cpt.fld@barrow.com> (raw)
In-Reply-To: c0ghan$17ihvk$3@ID-183691.news.uni-berlin.de

nospam55 <nospa@no.yahoo.no> wrote:
>nospam55 wrote:
>
>> Felix E. Klee wrote:
>>
>>> On Wed, 11 Feb 2004 21:21:21 +0200 Eli Zaretskii wrote:
>>>> By customizing the face called `fringe'.
>>>
>>> Thanks, this worked fine.
>>>
>>
>> I'm also interested, how can I customize that?
>>
>>     nospam55
>
>... I mean, do you think it is safe to edit the
>
>(custom-set-faces
>  ;; custom-set-faces was added by Custom -- don't edit or cut/paste it!
>  ;; Your init file should contain only one such instance.
> '(cperl-array-face ((t (:foreground "yellow" :slant italic))))
> '(cperl-hash-face ((t (:foreground "SpringGreen" :slant italic))))
>  [etc]
> '(fringe ((((class color) (background dark)) (:background "darkslategray"))))
>
>  [etc]
>
>in .emacs ?

That's the easy way.

>Is there another way to customize?

Goto the "Options" menu, and the last item in it, the "Customize Emacs"
submenu. In that menu click on "Specific Face...".  It will prompt
you for which face or type return for all of them.  You can enter
"fringe", or get them all and search down the list for fringe.

Obviously you can either set it for that session or you can ask
Emacs to write it to the ~/.emacs file to make it permanent.

>Another way to set the fringe face without customization functions?

Sure.  The trick is to make it happen after the customization has
taken place.  Here is a function you can put into your ~/.emacs file
to do that.

(defun set-fringe ()
  "Change fringe color."
  (interactive)
  (set-face-background 'fringe  "red"))

It can be invoked as "M-x set-fringe", or...
here is a method you can add to your ~/.emacs file to make it
happen automatically,

(add-hook 'display-time-hook 'set-fringe)

If you wanted that to happen only one time, you could add
a (delete-hook ...) statement to the function.

--
Floyd L. Davidson           <http://web.newsguy.com/floyd_davidson>
Ukpeagvik (Barrow, Alaska)                         floyd@barrow.com

  reply	other threads:[~2004-02-13  3:00 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-11 13:58 Changing colors of left and right "margin" Felix E. Klee
2004-02-11 19:21 ` Eli Zaretskii
     [not found] ` <mailman.2254.1076527282.928.help-gnu-emacs@gnu.org>
2004-02-11 20:18   ` Felix E. Klee
2004-02-12 17:43     ` nospam55
2004-02-12 17:47       ` . . nospam55
2004-02-13  3:00         ` Floyd Davidson [this message]
2004-02-14 17:57         ` nospam55
2004-02-15  1:59           ` Floyd Davidson
2004-02-12 19:07       ` Changing colors of left and right "margin" Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874qtv3cpt.fld@barrow.com \
    --to=floyd@barrow.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).