[Top][All Lists]

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

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

From: raman
Subject: Re: HowTo: Run a hook when a buffer becomes "current"
Date: Fri, 18 Dec 2015 08:15:00 -0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

David Kastrup <address@hidden> writes:

mode-line-update ->mood-line-update:-)

Eventually I think that is correct if this whole thing actually and
proves useful in the sense:

For someone who can see the screen and configures emacs window layout to
reflect the current activity, the mood is best computed from the set of
visible windows/frames -- and there, latching on to mode-line might be
the right thing. For now I 'm keeping it simple by only looking at the
current buffer -- 
>> 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.


reply via email to

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