* Re: set font
2002-08-20 17:08 set font Wu XiaoGuang
@ 2002-08-20 9:14 ` Charles Muller
2002-08-20 18:37 ` Wu XiaoGuang
0 siblings, 1 reply; 7+ messages in thread
From: Charles Muller @ 2002-08-20 9:14 UTC (permalink / raw)
Cc: Help-gnu-emacs
XianGuang wroteFrom: Wu XiaoGuang <xgwu@linux.net.cn>
Subject: set font
Date: Tue, 20 Aug 2002 17:08:20 +0000
> Hi, all:
> I like to use "lucidasanstypewriter-bold-14". How can I set it in my
> .emacs file?
My font setting in .emacs is like this:
(set-default-font "-adobe-times-medium-r-normal--24-240-75-75-p-124-iso10646-1")
So perhaps you need something like
(set-default-font "-"lucida-sans-typewriter-bold-14-[.....?]")
Chuck
---------------------------
Charles Muller <acmuller@gol.com>
Faculty of Humanities, Toyo Gakuen University
Digital Dictionary of Buddhism and CJKV-English Dictionary
[http://www.acmuller.net]
Mobile Phone: 090-9310-1787
^ permalink raw reply [flat|nested] 7+ messages in thread
* set font
@ 2002-08-20 17:08 Wu XiaoGuang
2002-08-20 9:14 ` Charles Muller
0 siblings, 1 reply; 7+ messages in thread
From: Wu XiaoGuang @ 2002-08-20 17:08 UTC (permalink / raw)
Hi, all:
I like to use "lucidasanstypewriter-bold-14". How can I set it in my
.emacs file?
Thank you
BTW. I can't try "clean" font which response "font not found". I am
using Mandrake Linux 8.2, Emacs 21.1-10. Do I need some extra font package?
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: set font
2002-08-20 9:14 ` Charles Muller
@ 2002-08-20 18:37 ` Wu XiaoGuang
0 siblings, 0 replies; 7+ messages in thread
From: Wu XiaoGuang @ 2002-08-20 18:37 UTC (permalink / raw)
Charles Muller wrote:
>
> My font setting in .emacs is like this:
>
> (set-default-font
"-adobe-times-medium-r-normal--24-240-75-75-p-124-iso10646-1")
>
> So perhaps you need something like
>
> (set-default-font "-"lucida-sans-typewriter-bold-14-[.....?]")
>
With your advice, I set it as:
(set-default-font "-*-lucidatypewriter-bold-*-*-*-14-*-*-*-*-*-*-*")
I use 'xfontsel' to select the exact long name.
It works now.
Thank you.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Set font
@ 2016-09-27 11:57 Rainer M Krug
2016-09-27 12:02 ` Rainer M Krug
2016-09-28 9:59 ` Rasmus
0 siblings, 2 replies; 7+ messages in thread
From: Rainer M Krug @ 2016-09-27 11:57 UTC (permalink / raw)
To: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 957 bytes --]
Hi
I would like to set the font for all source code editing modes to a
specific font (Monoid https://larsenwork.com/monoid/ ). I have defined a
function rmk/set-font-to-programming-font which sets the font and also
have added this function to the ess-mode-hook:
--8<---------------cut here---------------start------------->8---
(defun rmk/set-font-to-programming-font ()
"Change font in current window to a monospaced font."
(interactive)
(set-frame-font "Monoid-12" nil t))
(add-hook 'ess-mode-hook 'rmk/set-programming-font)
--8<---------------cut here---------------end--------------->8---
Now what is the easiest to use this font for all source languages
(emacs-lisp-mode, c-mode, c++-mode, ...)? Do I have to add to all of
them the function to the hook, or is there an easier approach which
sets the font for all these languages?
Thanks,
Rainer
--
Rainer M. Krug
email: Rainer<at>krugs<dot>de
PGP: 0x0F52F982
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 454 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Set font
2016-09-27 11:57 Set font Rainer M Krug
@ 2016-09-27 12:02 ` Rainer M Krug
2016-09-27 12:17 ` Rainer M Krug
2016-09-28 9:59 ` Rasmus
1 sibling, 1 reply; 7+ messages in thread
From: Rainer M Krug @ 2016-09-27 12:02 UTC (permalink / raw)
To: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 1059 bytes --]
Rainer M Krug <Rainer@krugs.de> writes:
> Hi
>
> I would like to set the font for all source code editing modes to a
> specific font (Monoid https://larsenwork.com/monoid/ ). I have defined a
> function rmk/set-font-to-programming-font which sets the font and also
> have added this function to the ess-mode-hook:
>
> (defun rmk/set-font-to-programming-font ()
> "Change font in current window to a monospaced font."
> (interactive)
> (set-frame-font "Monoid-12" nil t))
>
> (add-hook 'ess-mode-hook 'rmk/set-programming-font)
>
> Now what is the easiest to use this font for all source languages
> (emacs-lisp-mode, c-mode, c++-mode, ...)? Do I have to add to all of
> them the function to the hook, or is there an easier approach which
> sets the font for all these languages?
And I just realized - the font stays when I switch back to another
buffer - but I only want to have it on specific buffers - how can I do
this?
>
> Thanks,
>
> Rainer
--
Rainer M. Krug
email: Rainer<at>krugs<dot>de
PGP: 0x0F52F982
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 454 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Set font
2016-09-27 12:02 ` Rainer M Krug
@ 2016-09-27 12:17 ` Rainer M Krug
0 siblings, 0 replies; 7+ messages in thread
From: Rainer M Krug @ 2016-09-27 12:17 UTC (permalink / raw)
To: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 1535 bytes --]
Rainer M Krug <Rainer@krugs.de> writes:
> Rainer M Krug <Rainer@krugs.de> writes:
>
>> Hi
>>
>> I would like to set the font for all source code editing modes to a
>> specific font (Monoid https://larsenwork.com/monoid/ ). I have defined a
>> function rmk/set-font-to-programming-font which sets the font and also
>> have added this function to the ess-mode-hook:
>>
>> (defun rmk/set-font-to-programming-font ()
>> "Change font in current window to a monospaced font."
>> (interactive)
>> (set-frame-font "Monoid-12" nil t))
>>
>> (add-hook 'ess-mode-hook 'rmk/set-programming-font)
>>
>> Now what is the easiest to use this font for all source languages
>> (emacs-lisp-mode, c-mode, c++-mode, ...)? Do I have to add to all of
>> them the function to the hook, or is there an easier approach which
>> sets the font for all these languages?
>
> And I just realized - the font stays when I switch back to another
> buffer - but I only want to have it on specific buffers - how can I do
> this?
I have it now only for the buffer by using:
--8<---------------cut here---------------start------------->8---
(defun rmk/set-buffer-face-mode-programming ()
"Sets a fixed width (monospace) font in current buffer"
(interactive)
(setq buffer-face-mode-face '(:family "Monoid" :height 120))
(buffer-face-mode))
--8<---------------cut here---------------end--------------->8---
>
>
>
>>
>> Thanks,
>>
>> Rainer
--
Rainer M. Krug
email: Rainer<at>krugs<dot>de
PGP: 0x0F52F982
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 454 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Set font
2016-09-27 11:57 Set font Rainer M Krug
2016-09-27 12:02 ` Rainer M Krug
@ 2016-09-28 9:59 ` Rasmus
1 sibling, 0 replies; 7+ messages in thread
From: Rasmus @ 2016-09-28 9:59 UTC (permalink / raw)
To: help-gnu-emacs
Rainer M Krug <Rainer@krugs.de> writes:
> Now what is the easiest to use this font for all source languages
> (emacs-lisp-mode, c-mode, c++-mode, ...)? Do I have to add to all of
> them the function to the hook, or is there an easier approach which
> sets the font for all these languages?
prog-mode-hook ?
--
Bang bang
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2016-09-28 9:59 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-27 11:57 Set font Rainer M Krug
2016-09-27 12:02 ` Rainer M Krug
2016-09-27 12:17 ` Rainer M Krug
2016-09-28 9:59 ` Rasmus
-- strict thread matches above, loose matches on Subject: below --
2002-08-20 17:08 set font Wu XiaoGuang
2002-08-20 9:14 ` Charles Muller
2002-08-20 18:37 ` Wu XiaoGuang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).