Jump to content

Emacs font problem


bsyuni
 Share

Recommended Posts

Hello everyone. :D

 

I am using MDK 10.0 OE.

 

I have a problem to setup permanently for emacs.

The font size is too small for the 12.1' and 800X600 resolution of LCD.

 

So far I have been changed the font to click left mouse button and shift so that I can have a font menu. After that I can choose right one. I choose courier >14 usually.

 

Now I would like to make it as my permanent setting for emacs font.

I tried to modify /usr/X11R6/lib/X11/app-defaults/Emacs file to proper font. I am not sure it was right one or not but nothing has been changed at all.

 

 Emacs*font: -*-fixed-medium-r-normal-*-*-140-75-75-*-*-*
# Emacs*font: -*-fixed-medium-r-normal-*-*-160-75-75-*-*-*
# Emacs*font: -*-courier-*-r-*-*-16-*-100-100-*-*-*-*
emacs*foreground:                       Wheat
emacs*background:                       DarkSlateGray
emacs*region.attributeForeground:       White
emacs*region.attributeBackground:       SteelBlue
emacs*pointerColor:                     Orchid
emacs*cursorColor:                      Orchid  

 

I tried the second and third line one by one. The first line is default.

 

How can I possibly setup the font permanently? :help:

 

:thanks: in advance.

Edited by bsyuni
Link to comment
Share on other sites

The best way to customise emacs is though configuring ~/.emacs file. You can set fonts through Options -> Customize Emacs -> Browse Customization -> Faces -> Basic Faces. Once you confirm your choice for using in future sessions, the configuration will be written to ~/.emacs file in the home directory, you will see something like this:

 

(custom-set-faces
;; custom-set-faces was added by Custom -- don't edit or cut/paste it!
;; Your init file should contain only one such instance.
'(default ((t (:stipple nil :background "LightYellow" :foreground "Black" :inverse-video nil :box nil :strike-through nil :overline nil :underline nil :slant normal :weight normal :height 144 :width normal :family "bitstream-terminal"))))
'(bold ((t (:weight bold))))
'(mode-line ((((type x w32 mac) (class color)) (:background "black" :foreground "white" :box (:line-width -1 :style released-button)))))
'(scroll-bar ((t (:background "grey75" :foreground "white")))))

If you like you can cut and paste this in the .emacs file, then restart emacs.

 

PS. Yes, you can safely ignore the warning "don't edit or cut/paste it", there is no way you can break anything.

Edited by coverup
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...