tags:

views:

68

answers:

1

I found out about variable-pitch-mode through a thread here on StackOverflow, and it's very handy when writing in org-mode, easier on the eyes and everything. But using tables in org is close to worthless when using sans-serif fonts. And being able to use tables is one of the strengths with org-mode :-(

Is there any way to have sans-serif fonts for text, headings etc but a monospace font for tables in org-mode?

+3  A: 

See if this works,

(set-face-attribute 'org-table nil :inherit 'fixed-pitch)

You may use C-u C-x = to see which face is in effect at a particular point.

huaiyuan
It does work with emacs 24 :)
julien
Awesome! Works just like I want it :)
monotux