all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Marco Baringer <e.baringer@studenti.to.it>
Cc: "'help-gnu-emacs@gnu.org'" <help-gnu-emacs@gnu.org>
Subject: Re: switch-to-buffer hook?
Date: 14 Jun 2002 16:19:52 +0200	[thread overview]
Message-ID: <m2sn3q9c3b.fsf@studenti.to.it> (raw)
In-Reply-To: <ABC3DD304107D511B4D40002B32C1CF539A242@brkmail01.adirtech.com>

Douglas Lewan <dlewan@adirtech.com> writes:

> Hi,
> 
> Is there a hook that can be executed on switching buffers?
> 
> I'd like to change colors based on the major release of the code that I'm
> looking at, but that looks like it is frame-wide and that still wouldn't
> necessarily remind me which version of a particular file I'm looking at.
> 

to the best of my knowledge, no. however:

(global-set-ket (kbd "C-xb") (lambda (buffer &optional norecor)
                               (change-colors-based-on-new-buffer-contents-code buffer)
                               (switch-to-buffer buffer norecord)))



-- 
-Marco
Ring the bells that still can ring.
Forget the perfect offering.
There's a crack in everything.
It's how the light gets in.
     -Isonard Cohen

      reply	other threads:[~2002-06-14 14:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-14 12:41 switch-to-buffer hook? Douglas Lewan
2002-06-14 14:19 ` Marco Baringer [this message]

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=m2sn3q9c3b.fsf@studenti.to.it \
    --to=e.baringer@studenti.to.it \
    --cc=help-gnu-emacs@gnu.org \
    /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.