[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.
--
- HowTo: Run a hook when a buffer becomes "current", raman, 2015/12/16
- Re: HowTo: Run a hook when a buffer becomes "current", Nicolas Richard, 2015/12/16
- Re: HowTo: Run a hook when a buffer becomes "current", Richard Stallman, 2015/12/16
- Re: HowTo: Run a hook when a buffer becomes "current", raman, 2015/12/17
- Re: HowTo: Run a hook when a buffer becomes "current", Richard Stallman, 2015/12/18
- Re: HowTo: Run a hook when a buffer becomes "current", raman, 2015/12/19
- Re: HowTo: Run a hook when a buffer becomes "current", Dmitry Gutov, 2015/12/19
- Re: HowTo: Run a hook when a buffer becomes "current", raman, 2015/12/19
- Re: HowTo: Run a hook when a buffer becomes "current", John Wiegley, 2015/12/22
- Re: HowTo: Run a hook when a buffer becomes "current", raman, 2015/12/22
Re: HowTo: Run a hook when a buffer becomes "current", Karl Fogel, 2015/12/17