all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Thien-Thi Nguyen <ttn@gnuvola.org>
To: Eddie <penguinismo@almostconnecticut.net>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Changing the default font on the fly
Date: Sun, 24 Jun 2012 02:11:00 +0200	[thread overview]
Message-ID: <87ipehvaaz.fsf@gnuvola.org> (raw)
In-Reply-To: <20120623185009.78679dea@mageiahp> (Eddie's message of "Sat, 23 Jun 2012 18:50:09 -0400")

() Eddie <penguinismo@almostconnecticut.net>
() Sat, 23 Jun 2012 18:50:09 -0400

   (set-frame-font
       "-unknown-Droid Sans
   Mono-normal-normal-normal-*-*-*-*-*-m-0-iso10646-1")

   and

   (set-frame-font
       "-unknown-Carmina Md
   BT-normal-normal-normal-*-*-*-*-*-*-0-iso10646-1")

These are expressions.  You can make them commands (one of which
you already know: ‘typopunct-mode’) by placing a:

 ;; -*- emacs-lisp -*-
 (defun COMMAND-NAME () DOCSTRING (interactive) EXPRESSION)

in ~/.emacs (or rather, two of them).  For example:

 (defun use-droid-font ()
   "Set the frame font to Droid Sans Mono."
   (interactive)
   (set-frame-font "-unknown-Droid Sans Mono-normal-normal-normal-*-*-*-*-*-m-0-iso10646-1"))

 (defun use-carmina-font ()
   "Set the frame font to Carmina Md BT."
   (interactive)
   (set-frame-font "-unknown-Carmina Md BT-normal-normal-normal-*-*-*-*-*-*-0-iso10646-1"))

Lastly, make keybindings to taste and you are done, and can demonstrably
call yourself a programmer.  Welcome, a world of bug creation awaits!



  reply	other threads:[~2012-06-24  0:11 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.169.1340467234.20353.help-gnu-emacs@gnu.org>
2012-06-23 21:18 ` Changing the default font on the fly Eddie
2012-06-23 21:25   ` Drew Adams
2012-06-23 22:50     ` Eddie
2012-06-24  0:11       ` Thien-Thi Nguyen [this message]
2012-06-23 23:17   ` Bill White

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ipehvaaz.fsf@gnuvola.org \
    --to=ttn@gnuvola.org \
    --cc=help-gnu-emacs@gnu.org \
    --cc=penguinismo@almostconnecticut.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.