[Top][All Lists]

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

Re: Trouble setting default font and window size

From: HASM
Subject: Re: Trouble setting default font and window size
Date: Thu, 28 Jul 2016 08:30:30 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.95 (gnu/linux)

> Last, you can use ~/.Xresources to move a lot of that stuff from the
> Emacs init files and also from the invocation command-line arguments.

I push this into my xrdb:
Emacs*geometry:   100x50
Emacs.menuBar:              off
Emacs.toolBar:              off
Emacs.horizontalScrollBars: off
Emacs.verticalScrollBars:   off
Emacs.background:           #304060
Emacs.foreground:           white
Emacs.Font: "-adobe-courier-medium-r-normal--20-140-100-100-m-110-iso8859-15"

and this in my initialization:

(defun hasm-config-frame (&optional frame)
    (cond (frame (select-frame frame)))
    (if (equal window-system 'x)
          (set-foreground-color "white")
          (set-background-color "#304060")
          (set-frame-height (selected-frame) 50)
          (set-frame-width (selected-frame) 100)
          (set-face-attribute 'fringe nil :background "#304060" :foreground 
"-adobe-courier-medium-r-normal--20-140-100-100-m-110-iso8859-15" nil t)
          (transient-mark-mode 1)
          (scroll-bar-mode -1)
          (tool-bar-mode -1)
    (menu-bar-mode -1)))

(add-hook 'after-make-frame-functions 'hasm-config-frame)
(add-hook 'after-init-hook 'hasm-config-frame)

and one time out of 10 or thereabout, my frame doesn't get the correct


reply via email to

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