emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: HowTo: Run a hook when a buffer becomes "current"


From: David Kastrup
Subject: Re: HowTo: Run a hook when a buffer becomes "current"
Date: Fri, 18 Dec 2015 10:30:01 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

raman <address@hidden> writes:

> I divided the types of things I do  into categories:
> (things I do == things I do in Emacs since I dont use anything else)
>
> Communicate: mail, gnus, twitter, jabber  etc 
> Program (prog-mode covers them all)
> text-mode (write content)
> special-mode: applications written in Emacs 
> web: eww, w3
>
> Then I created a mapping from modes to soundscapes (think mode -> mood) 
> and finally, i  attached myself to select-mode-hook to switch the
> soundscape that is playing. 

Sounds to me as if you want to hook in the mode line update.  Which then
becomes more of a mood line update.

-- 
David Kastrup



reply via email to

[Prev in Thread] Current Thread [Next in Thread]