dot/emacs, dot/Xdefaults: Fix default frame width.
authorMark Wooding <mdw@distorted.org.uk>
Mon, 19 May 2014 09:09:44 +0000 (10:09 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 19 May 2014 09:09:44 +0000 (10:09 +0100)
Two changes over the years.  Firstly, Emacs later than 21 (I think) have
fringes in which they display overflow markers, rather than needing a
text column for them, so we should set the default (one-column) frame
width to 77, rather than 78.  Secondly, I use very narrow fringes, so
Emacs's initial estimate of the frame width comes out wrong, so we need
to fiddle with the X resource.

dot/Xdefaults
dot/emacs

index d271429..10320e7 100644 (file)
@@ -71,7 +71,7 @@ XConsole*foreground:          #54ff9f
 XConsole*geometry:             485x455
 
 !! Emacs.
-emacs.geometry:                        77x33
+emacs.geometry:                        76x33
 Emacs.pane.menubar.font:       NICEFONT
 Emacs.menu*.font:              NICEFONT
 Emacs.font:                    FIXED
index 4705e7e..1e46f34 100644 (file)
--- a/dot/emacs
+++ b/dot/emacs
 
 (setq default-frame-alist
       (mdw-uniquify-alist
-       '((width . 78)
+       `((width . ,(if (>= emacs-major-version 21) 77 78))
         (height . 33)
         (vertical-scroll-bars . right)
         (cursor-type . bar)
         (left-fringe . 5)
         (right-fringe . 5)
         (scroll-bar-width . 15)
-        (cursor-color . "red"))
-       (if mdw-black-background
-          '((background-mode . dark))
-        '((background-mode . light)))))
+        (cursor-color . "red")
+        (background-mode . ,(if mdw-black-background 'dark 'light)))))
 (setq window-system-default-frame-alist
       '((pm (font . "-os2-System VIO-medium-r-normal--*-40-*-*-m-*-cp850")
            (menu-font . "8.Helv")