[4296] in RedHat Linux List
Re: xemacs won't save font type or size?
daemon@ATHENA.MIT.EDU (mmalecha@utmem1.utmem.edu)
Wed Nov 13 21:55:13 1996
From: mmalecha@utmem1.utmem.edu
Date: Wed, 13 Nov 96 20:49:19 -0500
To: redhat-list@redhat.com
In-Reply-To: <m0vNjRe-001G0rC@iceonline.com>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
In <m0vNjRe-001G0rC@iceonline.com>, on 11/13/96 at 09:49 AM,
Borg <vladimip@iceonline.com*> said:
>It never worked for me. As soon as I click "Save Options",
>it says "writing [some .emacs or .xemacs -- don't remember]" but when I
>exit Xemacs and start it again, fonts are back to default. It happened
>with every version and RPM of xemacs I used since March 1995. I also
>asked for advice on this list but all I got were replies of type "I don't
>know, it works for me". (look through June archive maybe?)
>This is weird since that "Save Options" menu doesn't save
>anything on any of Linux systems I tried nor does it work on a BSD
>system.
On my two machines, save options created the following ~/.emacs file (I
had none before using the option):
;; Options Menu Settings
;; =====================
(cond
((and (string-match "XEmacs" emacs-version)
(boundp 'emacs-major-version)
(or (and
(= emacs-major-version 19)
(>= emacs-minor-version 14))
(= emacs-major-version 20))
(fboundp 'load-options-file))
(load-options-file "~/.xemacs-options")))
;; ============================
;; End of Options Menu Settings
I edited the file and inserted the lines form xemacs FAQ (6.3) how to
customise fonts (with minor modifications), so ~/.emacs looks like that:
;; Options Menu Settings
;; =====================
(cond
((and (string-match "XEmacs" emacs-version)
(set-face-background 'default "bisque") ; frame background
(set-face-foreground 'default "black") ; normal text
(set-face-background 'zmacs-region "red") ; When selecting w/
; mouse
(set-face-foreground 'zmacs-region "yellow")
(set-face-font 'default "*fixed-bold-r*120-100-100*")
;; ^^^^^ font I want,
;; was courier in original
(set-face-size '14') ; << size I like
(set-face-background 'highlight "blue") ; Ie when selecting
buffers
(set-face-foreground 'highlight "yellow")
(set-face-background 'modeline "blue") ; Line at bottom of buffer
(set-face-foreground 'modeline "white")
(set-face-font 'modeline "*bold-r-normal*140-100-100*")
(set-face-background 'isearch "yellow") ; When highlighting while
; searching
(set-face-foreground 'isearch "red")
(setq x-pointer-foreground-color "black") ; Adds to bg color,
; so keep black
(setq x-pointer-background-color "blue") ; This is color you really
; want ptr/crsr
(boundp 'emacs-major-version)
(or (and
(= emacs-major-version 19)
(>= emacs-minor-version 14))
(= emacs-major-version 20))
(fboundp 'load-options-file))
(load-options-file "~/.xemacs-options")))
;; ============================
;; End of Options Menu Settings
I exited and restarted xemacs and it come up with the
options specified.
Hope this helps.
--------- Mark
--------- mmalecha@utmem1.utmem.edu
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
________________________________________________________________________
http://www.redhat.com/RedHat-FAQ http://www.redhat.com/RedHat-Errata
http://www.redhat.com/RedHat-Tips http://www.redhat.com/mailing-lists
------------------------------------------------------------------------
To unsubscribe: mail -s unsubscribe redhat-list-request@redhat.com < /dev/null