unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Alin Soare <as1789@gmail.com>
To: monnier@iro.umontreal.ca, emacs-devel@gnu.org
Subject: Re: 23.0.60; Echo Area Face
Date: Mon, 2 Dec 2013 18:02:19 +0200	[thread overview]
Message-ID: <CA+Xtq3X2BaXSZyvMeFzZnGFz7EB-xj-=okTQOSs_STWK+M0z-g@mail.gmail.com> (raw)

[-- 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 --]

             reply	other threads:[~2013-12-02 16:02 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-02 16:02 Alin Soare [this message]
  -- strict thread matches above, loose matches on Subject: below --
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

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to='CA+Xtq3X2BaXSZyvMeFzZnGFz7EB-xj-=okTQOSs_STWK+M0z-g@mail.gmail.com' \
    --to=as1789@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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 public inbox

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

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).