Guest brent2 Posted April 8, 2006 Report Share Posted April 8, 2006 I have a problem with the configuration settings of the Emacs editor, the font size is too small. I would like to increase the defaults for the edit windows and the main menu, I would like to do this by creating a .emacs configuration file. Could you give a simple example to get my started? thanks Brent I am using the default installation of Emacs on Mandrake 10.1 Quote Link to comment Share on other sites More sharing options...
Jza Posted April 15, 2006 Report Share Posted April 15, 2006 Here is the EMACs here is the instruction for fotn size. Quote Link to comment Share on other sites More sharing options...
coverup Posted April 16, 2006 Report Share Posted April 16, 2006 Emacs typically uses fixed pitch fonts, which can't be resized in the same way as KDE or Open office fonts. Some fonts look larger than others, so you can try to select a larger font. You can preview available fonts using the CLI command xfontsel or just play with emacs using Options -> Oustomize Emacs -> Specific Face. Remember to backup .emacs file before doing that, in case you mess up it too badly. If that does not help, you may need to switch X font settings. X fonts come in two sizes, 100dpi and 75dpi. One thing you can try is to switch from 75dpi to 100dpi fonts. To do this, you need to edit the config file /etc/X11/fs/config. Basically, you need to tell X that your preference is 100dpi fonts. Edit that file to make sure these two lines are in this order: /usr/X11R6/lib/X11/fonts/100dpi:unscaled, /usr/X11R6/lib/X11/fonts/75dpi:unscaled, Also, change[/code]# 100 x 100 and 75 x 75 default-resolutions = 75,75,100,100[/code]to # 100 x 100 and 75 x 75 default-resolutions = 100,100,75,75 Note that this will affect appearance of all X fonts in all applications which use them, eg. xterm etc. If none of this helps, you can try switching the montor to a lower resolution, but that also means a more blurry appearnce of the screen. Quote Link to comment Share on other sites More sharing options...
Guest brent2 Posted April 19, 2006 Report Share Posted April 19, 2006 hi Jza, I've tried the Sams reference you suggested, but I cannot get it to work. The Sams reference suggests that a permanent change can be implemented by modifying the X windows system via xrdb and .Xdefaults. This is what I did, Running from the command-line as root, run, vi $HOME/.Xdefaults - this file gives me these following references to emacs emacs*Background: DarkSlateGray emacs*Foreground: Wheat emacs*pointerColor: Orchid emacs*cursorColor: Orchid emacs*bitmapIcon: on emacs*font: fixed emacs.geometry: 80x25 according to SAMS I modify this to be, emacs*Background: DarkSlateGray emacs*Foreground: Wheat emacs*pointerColor: Orchid emacs*cursorColor: Orchid emacs*bitmapIcon: on ! emacs*font: fixed ! emacs.geometry: 80x25 emacs*font: -Adobe-Courier-Medium-R-Normal--18-180-75-75-M-110-ISO8859-1 emacs.geometry:113x38+0+0 These changes are implemented in X by running, xrdb -merge $HOME/.Xdefault The changes may be checked by running, xrdb -query When I run emacs - emacs fails to open and reports 'No fonts match `-Adobe-Courier-Medium-R-Normal--18-180-75-75-M-110-ISO8859-1' I have tried other fonts, but emacs continues to complain. To restore emacs was easy, just edit out the changes to .Xdefaults and re-run xrdb. Quote Link to comment Share on other sites More sharing options...
coverup Posted April 20, 2006 Report Share Posted April 20, 2006 Try lower case: -adobe-courier-medium-r-normal--18-180-75-75-m-110-iso8859-1 Also, try using fixed pitch font like -bitstream-terminal-medium-r-normal--18-140-100-100-c-110-iso8859-1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.