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

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

initial window positioning


From: Mickey Ferguson
Subject: initial window positioning
Date: Tue, 15 Feb 2011 14:58:07 -0800

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 dont 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.


reply via email to

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