all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* custom-set-faces is slow
@ 2003-08-05  7:01 Ittay Dror
  0 siblings, 0 replies; 2+ messages in thread
From: Ittay Dror @ 2003-08-05  7:01 UTC (permalink / raw)


i have this in my init file:
(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.
 '(default ((t (:stipple nil :background "light goldenrod yellow"
:foreground "#000000" :inverse-video nil :box nil :strike-through nil
:overline nil :underline nil :slant normal :weight normal :height 107
:width normal :family "adobe-courier"))))
 '(ido-first-match-face ((t (:foreground "blue" :weight bold))))
 '(mcomplete-prefix-method-alternative-part-face ((t (:foreground
"Brown"))))
 '(mcomplete-prefix-method-fixed-part-face ((t (:foreground "Brown"
:weight bold))))
 '(mcomplete-substr-method-alternative-part-face ((t (:foreground
"blue"))))
 '(mcomplete-substr-method-fixed-part-face ((t (:foreground "blue"
:weight bold))))
 '(table-cell-face ((t (:background "wheat" :foreground "blue"
:inverse-video nil)))))


it takes 4 seconds (!!) to finish.

I'm using Mandrake 9.1 linux with emacs version 21.2.93.1 on gtk.

can you please explain why and suggest a solution?

Thank you,
Ittay
-- 
=======================================
Ittay Dror (ittay@qlusters.com)
User Space, R&D
Qlusters Inc.
Tel: +972-3-6081956 Fax: +972-3-6081841

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: custom-set-faces is slow
       [not found] <mailman.85.1060067290.29551.help-gnu-emacs@gnu.org>
@ 2003-08-05 12:40 ` Oliver Scholz
  0 siblings, 0 replies; 2+ messages in thread
From: Oliver Scholz @ 2003-08-05 12:40 UTC (permalink / raw)


Ittay Dror <ittay@qlusters.com> writes:

> i have this in my init file:
> (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.
>  '(default ((t (:stipple nil :background "light goldenrod yellow"
   ^^^^^^^^

[...]
> :inverse-video nil)))))
>
> it takes 4 seconds (!!) to finish.
>
> I'm using Mandrake 9.1 linux with emacs version 21.2.93.1 on gtk.
>
> can you please explain why and suggest a solution?

The point is the default face here. How much time it takes to change
the default face via Lisp/Custom depends on your hardware and -- in
some cases -- on your WM. You may speed up things for certain WMs like
Ion by putting this line into you .Xdefaults or .Xresources:

Emacs.WaitForWm: false

If that does not improve much or does not improve anything at all,
you have two choices:

1. Start Emacs once and don't exit. You can use emacsclient to
   connect to your Emacs session from, say, an xterm. There are many
   of us who close Emacs only when they are going to shut down the
   operating system and let it run for weeks otherwise.

   Have a look at the Emacs manual, node “Emacs Server”.

2. Set the default face in your .Xresources or your .Xdefaults. I
   think you can only change the font with something like 

   Emacs.font: -lirum-larum-*- .... -ISO8859-1

   but I am not sure. I don't use this. Have a look at the Emacs
   manual, node “X Resources”.

    Oliver
-- 
18 Thermidor an 211 de la Révolution
Liberté, Egalité, Fraternité!

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-08-05 12:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.85.1060067290.29551.help-gnu-emacs@gnu.org>
2003-08-05 12:40 ` custom-set-faces is slow Oliver Scholz
2003-08-05  7:01 Ittay Dror

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.