LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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, 02: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 09:51 AM.
 
Old 04-05-2007, 10:28 AM   #2
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 54
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 10:32 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 12:29 PM
EMACS font problem with Current TNWestTex Slackware 4 04-13-2007 10:39 AM
Help with font size in emacs? shadow5277 Linux - General 3 02-24-2006 04:48 AM
emacs font problem Andramalech Linux - Software 12 01-15-2005 04:17 PM
font size in emacs koyi Linux - Software 0 06-28-2004 09:35 AM

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

All times are GMT -5. The time now is 03:23 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration