all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* switch-to-buffer hook?
@ 2002-06-14 12:41 Douglas Lewan
  2002-06-14 14:19 ` Marco Baringer
  0 siblings, 1 reply; 2+ messages in thread
From: Douglas Lewan @ 2002-06-14 12:41 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 1009 bytes --]

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.

Of course, alternative solutions are also welcome.

Thanks.

,Doug
Douglas Lewan
ADIR Technologies
732 836 3916
dlewan@adirtech.com

The legal department has requested that this message appear as a footnote to
all e-mails sent from my computer.

This e-mail and attachments, if any, may contain confidential and/or
proprietary information. Please be advised that the unauthorized use or
disclosure of the information is strictly prohibited. If you are not the
intended recipient, please notify the sender immediately by reply e-mail and
delete all copies of this message and attachments. Thank you.

Proprietary content:  I write code.  We have releases.  I use emacs (often
with more than one buffer.)  Don't tell anyone.

[-- Attachment #2: Type: text/html, Size: 1690 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: switch-to-buffer hook?
  2002-06-14 12:41 switch-to-buffer hook? Douglas Lewan
@ 2002-06-14 14:19 ` Marco Baringer
  0 siblings, 0 replies; 2+ messages in thread
From: Marco Baringer @ 2002-06-14 14:19 UTC (permalink / raw)
  Cc: 'help-gnu-emacs@gnu.org'

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-06-14 14:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-14 12:41 switch-to-buffer hook? Douglas Lewan
2002-06-14 14:19 ` Marco Baringer

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.