Article View: gnu.emacs.help
Article #1982Re: emacs display in X11R5
From: David S. Goldberg
Date: Thu, 17 Dec 1992 15:21
Date: Thu, 17 Dec 1992 15:21
35 lines
2092 bytes
2092 bytes
>>>>> On 13 Dec 92 03:02:27 GMT, pedersen@seas.smu.edu (Ted Pedersen)
>>>>> said:
Ted> I am using emacs 18.59.1 and having some difficulty. When I use
Ted> an X terminal (we run X11R5) my emacs window has little bitty
Ted> type in it. When I expand the window I get a bigger window but
Ted> the type remains the same very small size. Is there a way to make
Ted> the emacs type size larger? Otherwise emacs works fine in this
Ted> setup.
The following bit of elisp should help, but ideally, just set a bigger
default font in your .Xdefaults file or via xrdb.
;;;
;;; A way to change the font inside of emacs (X11)
;;; stolen from the net (toad@CS.CMU.EDU (Todd Kaufmann))
(defun my-set-font (font)
"Change the current font under X. Works with epoch, nemacs, or normal
gnu-emacs."
(if (boundp 'epoch::version) (epoch::font font) (x-set-font font)))
(defun tiny () (interactive) (my-set-font "6x10"))
(defun small () (interactive) (my-set-font "6x13"))
(defun medium () (interactive) (my-set-font "8x13"))
(defun big () (interactive) (my-set-font "9x15"))
(defun normal () (interactive) (my-set-font "9x15"))
(defun huge() (interactive) (my-set-font "10x20"))
--
Dave Goldberg UNIX Systems Programmer/Administrator
Post: The Mitre Corporation MS B020 202 Burlington Rd. Bedford, MA 01730
Phone: 617-271-2460
Domain: dsg@mbunix.mitre.org UUCP: {your neighborhood}!linus!mbunix!dsg
Technical Details
Message-ID:
<DSG.92Dec17102146@blackbird.mitre.org>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!ames!agate!linus!linus.mitre.org!blackbird!dsgReferences:
<1992Dec13.030227.12401@seas.smu.edu> <HOLLEN.92Dec16112323@peg.megatek.UUCP>Show Full Headers
Complete Article Headers
Newsgroups: gnu.emacs.help Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!ames!agate!linus!linus.mitre.org!blackbird!dsg From: dsg@blackbird.mitre.org (David S. Goldberg) Subject: Re: emacs display in X11R5 In-Reply-To: hollen@megatek.UUCP's message of Wed, 16 Dec 1992 19:23:23 GMT Message-ID: <DSG.92Dec17102146@blackbird.mitre.org> Sender: news@linus.mitre.org (News Service) Nntp-Posting-Host: blackbird.mitre.org Organization: The Mitre Corp., Bedford, MA. References: <1992Dec13.030227.12401@seas.smu.edu> <HOLLEN.92Dec16112323@peg.megatek.UUCP> Date: Thu, 17 Dec 1992 15:21:46 GMT Lines: 36