unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* initial window positioning
@ 2011-02-15 22:58 Mickey Ferguson
  0 siblings, 0 replies; only message in thread
From: Mickey Ferguson @ 2011-02-15 22:58 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 1390 bytes --]

When I start up emacs (currently on 21.3.1 on windows XP SP3), I have it
set up so that its window (frame?) will align itself on the right-hand
side of my screen, at full height.  It almost does this, but not quite -
it appears to be about 1 or 2 (pixels? Twips? Some unit of measure) to
the left of the right-hand edge.

My question - I don't know the emacs primitives or elisp, but maybe
someone can tell me a simple way to take the current window (frame?) and
move it one (unit) to the right of where it currently is?  Or even
better, maybe someone can fix my functions that I pasted below, that are
executed upon startup?  (Note that on my computer, emacs_alignment is
set to right.)

(defun big-font-mode ()
  "Use larger font"
  (interactive)
  (set-default-font
   "-raster-Terminal-bold-r-normal-normal-12-90-96-96-c-*-ms-oemlatin")
  (set-frame-height (selected-frame) (-(max-lines) 6))
  (fit-max-lines 6)
  (big-font-mode-fixup)
  )

(defun big-font-mode-fixup ()
  "Use larger font"
  (interactive)
  (set-frame-width (selected-frame) 72)
  (set-frame-position (selected-frame)
                      (if (equal (getenv "emacs_alignment") "right") -1
0)
                      (if (equal (getenv "emacs_alignment") "bottom") -1
0))
  )

Sadly, I do not have newsgroup access, so please CC me directly at
MFerguson (at) PlantCML-EADS (dot) com.

[-- Attachment #2: Type: text/html, Size: 4689 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-02-15 22:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-15 22:58 initial window positioning Mickey Ferguson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).