help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Info nodes titles font size customization


From: harven
Subject: Re: Info nodes titles font size customization
Date: Sun, 05 Oct 2008 23:08:53 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (darwin)

Rodolfo Medina <rodolfo.medina@gmail.com> writes:

> harven <harven@free.fr> writes:
>
>> You can try
>>
>> (add-hook 'info-mode-hook (lambda ()
>>    (set-face-attribute 'info-menu-header nil 
>>                       :inherit variable-pitch
>>                        :weight bold
>>                        :height 1)))


> Strange: this works:
>
> ;(custom-set-faces
>   ;; custom-set-faces was added by Custom.
>   ;; If you edit it by hand, you could mess it up, so be careful.
>   ;; Your init file should contain only one such instance.
>   ;; If there is more than one, they won't work right.
>  '(info-title-1 ((t (:inherit info-title-2 :height 1)))))
>
>
> and this does not:
>
> (add-hook 'info-mode-hook (lambda ()
>           (set-face-attribute 'info-title-1 t
>                               :inherit info-title-2
>                               :height 1
> )))

You need 

(add-hook 'info-mode-hook (lambda ()
           (set-face-attribute 'info-title-1 nil
                               :inherit info-title-2
                               :height 1)))

The meaning of the nil in set-face-attribute means "apply to all
frames" (no restriction). The meaning of the t in custom-set-attribute
means "apply to all frames" (always true). Please see the online help
of these functions for details (C-h f set-face-attribute).


reply via email to

[Prev in Thread] Current Thread [Next in Thread]