bsyuni Posted September 24, 2004 Report Share Posted September 24, 2004 (edited) 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? in advance. Edited September 24, 2004 by bsyuni Quote Link to comment Share on other sites More sharing options...
coverup Posted September 24, 2004 Report Share Posted September 24, 2004 (edited) 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 September 25, 2004 by coverup 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.