Jump to content

emacs editor


Guest brent2
 Share

Recommended Posts

Guest brent2

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Guest brent2

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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...