Rather than using 'default-frame-alist', I have in my .emacs file:

   (set-foreground-color "green")
   (set-background-color "black")
   (set-cursor-color "gray")
   (set-frame-font "Consolas 10" t)


Note that the way that Emacs deals with fonts changed with 23, so some of the old stuff no longer works. I suspect that there are similar functions for setting your other preferences. Also, you may want to choose a typeface other than 'Consolas' -- I chose it since it was the fixed-pitch san-serif typeface with the most flexibility (on my system) regarding point size, boldness, and italicness. ('Courier New' also has a wide range; however, I don't particularly care for this face.)

 -jp


andy.l...@quantel.com wrote:
I have just updated to the latest emacs 23.1.1 from 21.3 on WinXP and I'm trying to make things as familiar as I can.

In general everything works just fine, the only problem I have noticed is the speed of response to key presses. If I hold down the cursor key the cursor sticks and jumps half a page at a time rather than a line at a time.

I have tracked down the reason for this to the font I am using. I have been using the 6X13 font since it was posted here several years ago. If I make this my default font, then the response of emacs becomes very sluggish.

My .emacs has the lines

(setq default-frame-alist '((height . 66) (width . 114)
                            (menu-bar-lines . 1)
                            (cursor-color . "red")
                            (scroll-bar-width . 11)
                            (top . 72) (left . 1500)
(font . "-*-6X13-medium-r-*-*-13-*-*-*-c-*-iso8859-1")
                            ))

Commenting out the "font" line makes it all work at full speed.

So is this a problem with emacs or the font? And what is the best way to get emacs to either use this font or a similar one without suffering the slow response?

Thanks for any help

Andy Ling





Reply via email to