* 23.0.60; Echo Area Face
@ 2008-06-04 0:31 Florian Beck
2008-06-04 5:44 ` Stefan Monnier
0 siblings, 1 reply; 4+ messages in thread
From: Florian Beck @ 2008-06-04 0:31 UTC (permalink / raw)
To: emacs-pretest-bug
I was experimenting with Miles Baders new face remapping functionality
and tried to display the minibuffer/echo area in a smaller font size.
This does the job for minibuffer-iteraction:
(add-hook 'minibuffer-setup-hook 'set-minibuffer-face)
(defun set-minibuffer-face ()
(set (make-local-variable 'face-remapping-alist)
'((default :family "DejaVu Sans" :height 0.75))))
but there doesn't seem a way to influence the display of messages
displayed in the minibuffer. I tought the above would take care of it. I
know the minibuffer is somewhat special. How do I set a buffer local
variable for it?
In GNU Emacs 23.0.60.5 (i686-pc-linux-gnu)
of 2008-06-03 on aeschylus
Windowing system distributor `The X.Org Foundation', version 11.0.10400090
configured using `configure '--with-x-toolkit=no' 'CC=gcc' 'CFLAGS=-O0 -fno-crossjumping -g''
--
Florian Beck
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: 23.0.60; Echo Area Face
2008-06-04 0:31 23.0.60; Echo Area Face Florian Beck
@ 2008-06-04 5:44 ` Stefan Monnier
2008-06-06 5:55 ` Kevin Rodgers
0 siblings, 1 reply; 4+ messages in thread
From: Stefan Monnier @ 2008-06-04 5:44 UTC (permalink / raw)
To: Florian Beck; +Cc: emacs-pretest-bug
> I was experimenting with Miles Baders new face remapping functionality
> and tried to display the minibuffer/echo area in a smaller font size.
> This does the job for minibuffer-iteraction:
> (add-hook 'minibuffer-setup-hook 'set-minibuffer-face)
> (defun set-minibuffer-face ()
> (set (make-local-variable 'face-remapping-alist)
> '((default :family "DejaVu Sans" :height 0.75))))
> but there doesn't seem a way to influence the display of messages
> displayed in the minibuffer. I tought the above would take care of it. I
> know the minibuffer is somewhat special. How do I set a buffer local
> variable for it?
I thought that maybe the following hack I've been using for ages (to add
special key bindings to my minibuffer-only frame, such as `f' to
find-file-other-frame) would work as well but it doesn't because the
echo messages are displayed in the same window as the minibuffers, but
in diferent buffers.
(add-hook 'minibuffer-exit-hook
(lambda ()
(with-current-buffer (window-buffer (minibuffer-window))
(set (make-local-variable 'face-remapping-alist)
'((default :family "DejaVu Sans" :height 0.75))))))
so you'll need to set this var in all the " *Echo Area N*" buffers,
which is rather ugly. I don't know how many of them there can be:
I only see 2 here (the 0 and the 1), but maybe there can be more (tho
maybe not, since there can't be recursive echo area messages AFAIK),
Stefan
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: 23.0.60; Echo Area Face
2008-06-04 5:44 ` Stefan Monnier
@ 2008-06-06 5:55 ` Kevin Rodgers
0 siblings, 0 replies; 4+ messages in thread
From: Kevin Rodgers @ 2008-06-06 5:55 UTC (permalink / raw)
To: emacs-devel; +Cc: emacs-pretest-bug
Stefan Monnier wrote:
>> I was experimenting with Miles Baders new face remapping functionality
>> and tried to display the minibuffer/echo area in a smaller font size.
>
>> This does the job for minibuffer-iteraction:
>
>> (add-hook 'minibuffer-setup-hook 'set-minibuffer-face)
>
>> (defun set-minibuffer-face ()
>> (set (make-local-variable 'face-remapping-alist)
>> '((default :family "DejaVu Sans" :height 0.75))))
>
>> but there doesn't seem a way to influence the display of messages
>> displayed in the minibuffer. I tought the above would take care of it. I
>> know the minibuffer is somewhat special. How do I set a buffer local
>> variable for it?
>
> I thought that maybe the following hack I've been using for ages (to add
> special key bindings to my minibuffer-only frame, such as `f' to
> find-file-other-frame) would work as well but it doesn't because the
> echo messages are displayed in the same window as the minibuffers, but
> in diferent buffers.
>
> (add-hook 'minibuffer-exit-hook
> (lambda ()
> (with-current-buffer (window-buffer (minibuffer-window))
> (set (make-local-variable 'face-remapping-alist)
> '((default :family "DejaVu Sans" :height 0.75))))))
>
> so you'll need to set this var in all the " *Echo Area N*" buffers,
> which is rather ugly. I don't know how many of them there can be:
> I only see 2 here (the 0 and the 1), but maybe there can be more (tho
> maybe not, since there can't be recursive echo area messages AFAIK),
There can not be more than 2: the dual echo area buffers are hard-coded
in xdisp.c.
--
Kevin Rodgers
Denver, Colorado, USA
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: 23.0.60; Echo Area Face
@ 2013-12-02 16:02 Alin Soare
0 siblings, 0 replies; 4+ messages in thread
From: Alin Soare @ 2013-12-02 16:02 UTC (permalink / raw)
To: monnier, emacs-devel
[-- Attachment #1: Type: text/plain, Size: 1937 bytes --]
>
> > I was experimenting with Miles Baders new face remapping functionality
> > and tried to display the minibuffer/echo area in a smaller font size.
> > This does the job for minibuffer-iteraction:
> > (add-hook 'minibuffer-setup-hook 'set-minibuffer-face)
> > (defun set-minibuffer-face ()
> > (set (make-local-variable 'face-remapping-alist)
> > '((default :family "DejaVu Sans" :height 0.75))))
> > but there doesn't seem a way to influence the display of messages
> > displayed in the minibuffer. I tought the above would take care of it. I
> > know the minibuffer is somewhat special. How do I set a buffer local
> > variable for it?
> I thought that maybe the following hack I've been using for ages (to add
> special key bindings to my minibuffer-only frame, such as `f' to
> find-file-other-frame) would work as well but it doesn't because the
> echo messages are displayed in the same window as the minibuffers, but
> in diferent buffers.
> (add-hook 'minibuffer-exit-hook
> (lambda ()
> (with-current-buffer (window-buffer (minibuffer-window))
> (set (make-local-variable 'face-remapping-alist)
> '((default :family "DejaVu Sans" :height 0.75))))))
> so you'll need to set this var in all the " *Echo Area N*" buffers,
> which is rather ugly. I don't know how many of them there can be:
> I only see 2 here (the 0 and the 1), but maybe there can be more (tho
> maybe not, since there can't be recursive echo area messages AFAIK),
>
> Stefan
I do not undestand at all why do you set the faces of a *minibuffer* when
you EXIT, instead of setting it when you ENTER it,
via minibuffer-setup-hook.
I did so for all major modes (a different file for each hook I need) --
including for minibiffer --, and it works well:
(defun minibuffer-setup ()
(load (thinkpad-x-theme 'minibuffer) t t)
)
(add-hook 'minibuffer-setup-hook 'minibuffer-setup nil)
[-- Attachment #2: Type: text/html, Size: 2594 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-12-02 16:02 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-04 0:31 23.0.60; Echo Area Face Florian Beck
2008-06-04 5:44 ` Stefan Monnier
2008-06-06 5:55 ` Kevin Rodgers
-- strict thread matches above, loose matches on Subject: below --
2013-12-02 16:02 Alin Soare
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.