all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* default font for Mac, WinXP, and Linux?
@ 2010-12-15 23:32 unfrostedpoptart
  2010-12-16  7:52 ` Elena
  2010-12-16 10:11 ` Andrea Crotti
  0 siblings, 2 replies; 6+ messages in thread
From: unfrostedpoptart @ 2010-12-15 23:32 UTC (permalink / raw)
  To: help-gnu-emacs

I'm stumped and need advice.  I'm running emacs 23.2.1 on Linux
(Redhat Enterprise), Windows (XP-SP3), and Mac (OSX 10.6.5).
I'm trying to use a common .emacs.d/init.el and can't get the default
font to work across the 3 environments.  I just want them all to come
up with a nice, fixed-width font.  courier-new would be fine and
should exist on all the machines.  How do I do this?

On a related note, what variables/functions would be good as
conditionals if I do need some code only executed on certain
platforms?

Thanks,

 David


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: default font for Mac, WinXP, and Linux?
  2010-12-15 23:32 default font for Mac, WinXP, and Linux? unfrostedpoptart
@ 2010-12-16  7:52 ` Elena
  2010-12-16 10:40   ` Peter Dyballa
                     ` (2 more replies)
  2010-12-16 10:11 ` Andrea Crotti
  1 sibling, 3 replies; 6+ messages in thread
From: Elena @ 2010-12-16  7:52 UTC (permalink / raw)
  To: help-gnu-emacs

On Dec 16, 12:32 am, unfrostedpoptart <da...@therogoffs.com> wrote:
> I'm stumped and need advice.  I'm running emacs 23.2.1 on Linux
> (Redhat Enterprise), Windows (XP-SP3), and Mac (OSX 10.6.5).
> I'm trying to use a common .emacs.d/init.el and can't get the default
> font to work across the 3 environments.  I just want them all to come
> up with a nice, fixed-width font.  courier-new would be fine and
> should exist on all the machines.  How do I do this?
>
> On a related note, what variables/functions would be good as
> conditionals if I do need some code only executed on certain
> platforms?
>
> Thanks,
>
>  David

C-h v system-type
C-h v window-system


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: default font for Mac, WinXP, and Linux?
  2010-12-15 23:32 default font for Mac, WinXP, and Linux? unfrostedpoptart
  2010-12-16  7:52 ` Elena
@ 2010-12-16 10:11 ` Andrea Crotti
  1 sibling, 0 replies; 6+ messages in thread
From: Andrea Crotti @ 2010-12-16 10:11 UTC (permalink / raw)
  To: help-gnu-emacs

unfrostedpoptart <david@therogoffs.com> writes:

> I'm stumped and need advice.  I'm running emacs 23.2.1 on Linux
> (Redhat Enterprise), Windows (XP-SP3), and Mac (OSX 10.6.5).
> I'm trying to use a common .emacs.d/init.el and can't get the default
> font to work across the 3 environments.  I just want them all to come
> up with a nice, fixed-width font.  courier-new would be fine and
> should exist on all the machines.  How do I do this?
>
> On a related note, what variables/functions would be good as
> conditionals if I do need some code only executed on certain
> platforms?
>
> Thanks,
>
>  David

On OSX I think Monaco (which is the default) is the best.
On linux I like Inconsolata and on windows I don't know...
Does it have to be the same font anyway?

In general I also have the same configuration everywhere, but for these
kind of things also using the customization framework and an external
custom file is probably much easier...




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: default font for Mac, WinXP, and Linux?
  2010-12-16  7:52 ` Elena
@ 2010-12-16 10:40   ` Peter Dyballa
  2010-12-16 10:44   ` Elena
       [not found]   ` <mailman.13.1292496016.7231.help-gnu-emacs@gnu.org>
  2 siblings, 0 replies; 6+ messages in thread
From: Peter Dyballa @ 2010-12-16 10:40 UTC (permalink / raw)
  To: david; +Cc: help-gnu-emacs


Am 16.12.2010 um 08:52 schrieb unfrostedpoptart:

>> I'm stumped and need advice.  I'm running emacs 23.2.1 on Linux
>> (Redhat Enterprise), Windows (XP-SP3), and Mac (OSX 10.6.5).
>> I'm trying to use a common .emacs.d/init.el and can't get the default
>> font to work across the 3 environments.  I just want them all to come
>> up with a nice, fixed-width font.  courier-new would be fine and
>> should exist on all the machines.  How do I do this?


Variables exist: system-type, window-system.

Lucida Sans Typewriter exists in Java. And Java is everywhere. You  
could also think of TeX. It has Latin Modern, the GNU FreeFonts,  
Inconsolata,...

--
Greetings

   Pete

They're putting dimes in the hole in my head to see the change in me.




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: default font for Mac, WinXP, and Linux?
  2010-12-16  7:52 ` Elena
  2010-12-16 10:40   ` Peter Dyballa
@ 2010-12-16 10:44   ` Elena
       [not found]   ` <mailman.13.1292496016.7231.help-gnu-emacs@gnu.org>
  2 siblings, 0 replies; 6+ messages in thread
From: Elena @ 2010-12-16 10:44 UTC (permalink / raw)
  To: help-gnu-emacs

On Dec 16, 7:52 am, Elena <egarr...@gmail.com> wrote:
> On Dec 16, 12:32 am, unfrostedpoptart <da...@therogoffs.com> wrote:
>
> > I'm stumped and need advice.  I'm running emacs 23.2.1 on Linux
> > (Redhat Enterprise), Windows (XP-SP3), and Mac (OSX 10.6.5).
> > I'm trying to use a common .emacs.d/init.el and can't get the default
> > font to work across the 3 environments.  I just want them all to come
> > up with a nice, fixed-width font.  courier-new would be fine and
> > should exist on all the machines.  How do I do this?
>
> > On a related note, what variables/functions would be good as
> > conditionals if I do need some code only executed on certain
> > platforms?
>
> > Thanks,
>
> >  David
>
> C-h v system-type
> C-h v window-system

That is:

C-h v system-type RET
C-h v window-system RET



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: default font for Mac, WinXP, and Linux?
       [not found]   ` <mailman.13.1292496016.7231.help-gnu-emacs@gnu.org>
@ 2010-12-16 21:56     ` unfrostedpoptart
  0 siblings, 0 replies; 6+ messages in thread
From: unfrostedpoptart @ 2010-12-16 21:56 UTC (permalink / raw)
  To: help-gnu-emacs

On Dec 16, 2:40 am, Peter Dyballa <Peter_Dyba...@Web.DE> wrote:
> Am 16.12.2010 um 08:52 schrieb unfrostedpoptart:
>
> >> I'm stumped and need advice.  I'm running emacs 23.2.1 on Linux
> >> (Redhat Enterprise), Windows (XP-SP3), and Mac (OSX 10.6.5).
> >> I'm trying to use a common .emacs.d/init.el and can't get the default
> >> font to work across the 3 environments.  I just want them all to come
> >> up with a nice, fixed-width font.  courier-new would be fine and
> >> should exist on all the machines.  How do I do this?
>
> Variables exist: system-type, window-system.
> Lucida Sans Typewriter exists in Java. And Java is everywhere. You  
> could also think of TeX. It has Latin Modern, the GNU FreeFonts,  
> Inconsolata,...

Thanks for the hints.  I had to do two things in my init.el.  First, I
added these lines:
(if (eq window-system 'x)    (set-face-attribute 'default nil :font
"Lucidatypewriter-10"))  ;; Linux
(if (eq window-system 'w32)  (set-face-attribute 'default nil :font
"Lucida Console-12"))    ;; WinXP
(if (eq window-system 'ns)   (set-face-attribute 'default nil :font
"lucidasanstypewriter-12"))  ;; Mac OSX

I also had to remove the font family and size references in the custom-
set-faces section added by the customize menus.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-12-16 21:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-15 23:32 default font for Mac, WinXP, and Linux? unfrostedpoptart
2010-12-16  7:52 ` Elena
2010-12-16 10:40   ` Peter Dyballa
2010-12-16 10:44   ` Elena
     [not found]   ` <mailman.13.1292496016.7231.help-gnu-emacs@gnu.org>
2010-12-16 21:56     ` unfrostedpoptart
2010-12-16 10:11 ` Andrea Crotti

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.