all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Buffer switching hook
@ 2013-04-27 12:50 Miguel Guedes
  2013-04-27 13:26 ` Pascal J. Bourguignon
  0 siblings, 1 reply; 3+ messages in thread
From: Miguel Guedes @ 2013-04-27 12:50 UTC (permalink / raw)
  To: help-gnu-emacs

Hello List,

I am writing a minor mode and as part of the requirements I need the 
minor-mode to be aware of when the user switches to a different buffer; 
something akin to `find-file-hook' but for buffers.

What is the best strategy to implement such a mechanism? I haven't really 
looked into `pre-command-hook' as I'd rather just use a hook, if one is 
available.

Miguel


PS: I've only just started learning (e)LISP so apologies if this is a 
straightforward question.



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

end of thread, other threads:[~2013-04-29  8:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-27 12:50 Buffer switching hook Miguel Guedes
2013-04-27 13:26 ` Pascal J. Bourguignon
2013-04-29  8:48   ` Miguel Guedes

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.