Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Setting inconsolata font for emacs (SOLVED)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Fred Krogh
Veteran
Veteran


Joined: 07 Feb 2005
Posts: 1036
Location: Tujunga, CA

PostPosted: Sun Feb 22, 2015 6:42 pm    Post subject: Setting inconsolata font for emacs (SOLVED) Reply with quote

I have seen comments on what a nice font inconsolata is for editing code, and decided to try it. After emerging it, I've tried various choices for what to put in my ~/emacs.el file, in ~/.Xresources, and no matter what I've tried when I run "emacs --debug-init ~/.emacs.el", I get "font "whatever I've tried" is not defined. I'm hoping someone knows the proper incantation. Thanks,
Fred


Last edited by Fred Krogh on Tue Feb 24, 2015 3:25 pm; edited 1 time in total
Back to top
View user's profile Send private message
Zagloj
Guru
Guru


Joined: 17 Jun 2005
Posts: 344

PostPosted: Mon Feb 23, 2015 11:05 pm    Post subject: Reply with quote

Hi, you can try to enable the font using the graphical menu options and selection what you want in a intuitive system, it is in Options -> Selt Default Font

Hope it helps ;)
_________________
Your ideology seems to be: "I hate the fanatics, we shoud kill them all" juantxorena dixit.
Back to top
View user's profile Send private message
Fred Krogh
Veteran
Veteran


Joined: 07 Feb 2005
Posts: 1036
Location: Tujunga, CA

PostPosted: Mon Feb 23, 2015 11:29 pm    Post subject: Reply with quote

Thanks for the thought, but that was the first thing tried. Inconsolata does not show up there. Lots of various tries involving (set_frame-font "...") in my .emacs.el file had no luck. Setting various things in .Xresources and the inconsolata fonts could not be found by emacs. I've wandered throught menus in emacs trying to change the directories that emacs uses to search for fonts, but nothing I change in those places seemed to make a difference.
Back to top
View user's profile Send private message
yngwin
Retired Dev
Retired Dev


Joined: 19 Dec 2002
Posts: 4572
Location: Suzhou, China

PostPosted: Tue Feb 24, 2015 6:43 am    Post subject: Reply with quote

Inconsolata is a truetype font. Does your emacs support TTF at all?
_________________
"Those who deny freedom to others deserve it not for themselves." - Abraham Lincoln
Free Culture | Defective by Design | EFF
Back to top
View user's profile Send private message
Fred Krogh
Veteran
Veteran


Joined: 07 Feb 2005
Posts: 1036
Location: Tujunga, CA

PostPosted: Tue Feb 24, 2015 3:24 pm    Post subject: Reply with quote

Many thanks yngwin. I did not have the xft use flag set. My choice of fonts in emacs has expanded greatly and inconsolata is trivial to select.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum