[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: switch-to-buffer hook?
From: |
Marco Baringer |
Subject: |
Re: switch-to-buffer hook? |
Date: |
14 Jun 2002 16:19:52 +0200 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.1.30 |
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