LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-05-2007, 01:24 AM   #1
avallach
Member
 
Registered: Sep 2006
Location: Silesia
Distribution: Debian GNU/Linux 4.0, ArchLinux, OpenBSD
Posts: 190
Blog Entries: 2

Rep: Reputation: 31
emacs under X - font problem


Hello.
Every time I try to run emacs under KDE on Arch I get something like this
Code:
[sparks@krwawnik ~]$ emacs
Warning: Cannot convert string "-*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-*" to type FontStruct
Warning: Cannot convert string "-*-helvetica-medium-r-*--*-120-*-*-*-*-iso8859-1" to type FontStruct
and the fonts look awfully corrupted :
HERE.
I tried changing the font by adding something to ~/.emacs like in some other thread here but it didn't help a lot. Strange thing is that everything works fine under console.

Sorry I tried to use emacs for first time in my life I rather prefer vim

//-----

OK I installed a thing called xemacs and it works well. But how to force to work normal emacs ?

Last edited by avallach; 04-05-2007 at 08:51 AM.
 
Old 04-05-2007, 09:28 AM   #2
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 55
You can set up an .Xdefaults file to use different fonts, or you can use Emacs menus to choose from a more limited set of fonts. What I do is to create one .Xdefaults and symlink it for all my users. .Xdefaults is nice because it works for all xapps not only Emacs. You can set cursor colors, etc.

You could do something like this:

Code:
emacs.font: -b&h-luxi mono-bold-o-normal--0-0-0-0-m-0-microsoft-cp1252
emacs.cursorColor: Blue
Emacs is a 900 pound gorilla and it is a bit much. Vi (or one of the clones) is a lot easier to use for making quick changes to config files etc. When you're writing and testing code or running without X then Emacs is pretty nice to have. Both have steep learning curves, Emacs is definitely harder to learn than Vi. Just be glad you didn't try to learn teco!

p.s. your picture looks like a unicode problem. I saw that once but I can't remember how I fixed it. Look in your x-fonts library and try a few different ones in your .Xdefaults until you get the look you want. I don't remember how arch package management works, you may also be missing an emacs unicode or font package or maybe you have the wrong emacs version for your environment.

Last edited by Randux; 04-05-2007 at 09:32 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Emacs - changing default font size and font type? neilcpp Linux - Software 16 05-20-2013 11:29 AM
EMACS font problem with Current TNWestTex Slackware 4 04-13-2007 09:39 AM
Help with font size in emacs? shadow5277 Linux - General 3 02-24-2006 03:48 AM
emacs font problem Andramalech Linux - Software 12 01-15-2005 03:17 PM
font size in emacs koyi Linux - Software 0 06-28-2004 08:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration