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: Thu, 9 Jan 2014 12:32:27 -0800 (PST)

> ?  (add-to-list 'default-frame-alist '(top . 0))
> >  (add-to-list 'default-frame-alist '(left . 140))
> >  (add-to-list 'initial-frame-alist '(height . 52))
> >  (add-to-list 'default-frame-alist '(height . 50))

Sheesh.  Just use `M-x customize-option default-frame-alist'.

(And use a `custom-file', to keep Customize stuff out of your ~/.emacs.)

> The problem here is that I want a generic file that will work for
> multiple screen dimensions.  A while ago I had tried going down
> the path you have suggested here and just didn't know all of the
> screen parameters, nor how to convert from one unit type to another.
> That's why the -1 was used, as an attempt at using emacs' knowledge
> of the screen's right edge location.

Just use a negative integer (e.g. -1) to set the number of pixels
from the right or bottom edge of your screen.

See the Elisp manual, node `(elisp) Position Parameters'




reply via email to

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