You are not logged in.

#1 2009-08-03 16:01:17

jsravn
Member
Registered: 2009-07-07
Posts: 15

Issues with Emacs 23 (bitmapped font/tiling wm) [solved sorta]

I'm having a couple problems with emacs 23 and couldn't get them solved after about an hour of tinkering. I'm wondering if anyone else has had some luck and could share their solutions.

1. I'm using terminus font, and emacs is anti-aliasing it and it looks awful. I don't have this problem in other Xft/X font configs. I'm using this config:

(set-default-font "-*-terminus-medium-r-*-*-14-*-*-*-*-*-*-*")

. I tried setting it in .Xdefaults with the same result.

2. I'm using Awesome WM and the window size is seriously screwed up. There is a big white window and emacs takes up 70% of the upper left corner. It seems like I can sometimes fix it by playing around with maximizing/moving the window around.


Edit: Problem with the font was a local .font directory with ttf files for Terminus, which emacs was picking up instead of the bitmapped version. However still have weird issues with the window size, like minibuffer being too large.

Last edited by jsravn (2009-08-04 16:41:40)

Offline

#2 2009-08-12 16:32:33

Neheb
Member
From: Norway
Registered: 2009-05-23
Posts: 39

Re: Issues with Emacs 23 (bitmapped font/tiling wm) [solved sorta]

I have the same problem maximizing emacs on startup in openbox. maximizing it by manually however works fine.
When using default font or changing the font before maximizing, the emacs window becomes too large for my screen. If I change the font after maximizing it, the emacs window occupies the whole screen, but only uses 70% of the emacs window.

Offline

#3 2009-08-12 16:35:52

andre.ramaciotti
Member
From: Brazil
Registered: 2007-04-06
Posts: 649

Re: Issues with Emacs 23 (bitmapped font/tiling wm) [solved sorta]

Neheb, have you tried setting your font via ~/.Xdefaults ?

Emacs*font: Terminus 8

(lambda ())

Offline

#4 2009-08-12 17:36:25

Neheb
Member
From: Norway
Registered: 2009-05-23
Posts: 39

Re: Issues with Emacs 23 (bitmapped font/tiling wm) [solved sorta]

thanks for the tip. Tried using .Xdefaults now, but it didn't help.

the code i use to maximize is

(defun toggle-fullscreen ()
  (interactive)
  (x-send-client-message nil 0 nil "_NET_WM_STATE" 32
                 '(2 "_NET_WM_STATE_MAXIMIZED_VERT" 0))
  (x-send-client-message nil 0 nil "_NET_WM_STATE" 32
                 '(2 "_NET_WM_STATE_MAXIMIZED_HORZ" 0))
)
(toggle-fullscreen)

Offline

Board footer

Powered by FluxBB