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

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

RE: Trying to right-align my window on startup


From: Drew Adams
Subject: RE: Trying to right-align my window on startup
Date: Fri, 10 Jan 2014 19:07:09 -0800 (PST)

> Here is a very pared down file I'm calling minimal.el.

OK. Putting paring that down further, it should be enough to put
just this in your init file:

(set-frame-font
   "-outline-Consolas-bold-r-normal-normal-12-90-96-96-c-*-iso10646-1")
(set-frame-position (selected-frame) -1 0)

What I see here (on MS Windows, like you) is that this does not
work with Emacs 23.4 or 24.3.  But it does work with recent Emacs 24
development snapshots (what will become Emacs 24.4).

However, if I add a non-nil KEEP-SIZE argument for `set-frame-font'
then it works in all three versions.  That is:

(set-frame-font
   "-outline-Consolas-bold-r-normal-normal-12-90-96-96-c-*-iso10646-1"
   t)     ; <==== ADD THIS SECOND ARGUMENT
(set-frame-position (selected-frame) -1 0)

Seems like a bug has been fixed in the development version, but
perhaps someone else has a different take on that or can suggest
a workaround for the case where KEEP-SIZE is nil.

Meanwhile, if you don't care about the size or number of lines
and columns (and it sounds like you do not - you just want to
set the font), then just add the `t' argument.



reply via email to

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