From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: raman Newsgroups: gmane.emacs.devel Subject: Re: HowTo: Run a hook when a buffer becomes "current" Date: Fri, 18 Dec 2015 08:18:50 -0800 Message-ID: References: <87r3ikiknq.fsf@red-bean.com> <87egek7y3f.fsf@mbork.pl> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1450456050 17580 80.91.229.3 (18 Dec 2015 16:27:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 18 Dec 2015 16:27:30 +0000 (UTC) Cc: Karl Fogel , emacs-devel@gnu.org To: Marcin Borkowski Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 18 17:27:25 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1a9xsH-0003lm-Ey for ged-emacs-devel@m.gmane.org; Fri, 18 Dec 2015 17:27:21 +0100 Original-Received: from localhost ([::1]:33408 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a9xsG-0002QY-RJ for ged-emacs-devel@m.gmane.org; Fri, 18 Dec 2015 11:27:20 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52550) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a9xsC-0002Pt-NW for emacs-devel@gnu.org; Fri, 18 Dec 2015 11:27:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a9xs7-0007mF-Vx for emacs-devel@gnu.org; Fri, 18 Dec 2015 11:27:16 -0500 Original-Received: from mail-pa0-x22d.google.com ([2607:f8b0:400e:c03::22d]:34340) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a9xs7-0007mB-Pr for emacs-devel@gnu.org; Fri, 18 Dec 2015 11:27:11 -0500 Original-Received: by mail-pa0-x22d.google.com with SMTP id wq6so62756751pac.1 for ; Fri, 18 Dec 2015 08:27:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=/OgmbzzWAatuWGH0AfliuLkJWPcrLquYVkZtJtlEFrM=; b=LPt+37+zWq319JkKUxx2P8YrrQVzTr3ftm8oxFzFvCjF+8Y3kWr127u8/pd4RquS05 01dE0+EqWrurD+FGA+GCvNpq5BIj7dgbojsY8p2rQuE+T+N3R7VHlFD1EOIE8Izke/PC DgjBDsCNP/XNO5AwegNqDsEXu+3+9pchdQRFOG+PYy+7aS9HePoPqdSJi8PUA5fTfKid +mCP4l+Ur35F+nzGnURxSoICbNxbnt8Gedh0E9CZ8I8ge/ETKC+AM/4iOK/ASr1PPnQz hjX4boC1wF9Gdwh9NP2sXO4z/75WmoYRPnNrU9O6Sj9mCDwVeR0Q2OhcxEja8pG9cYJ9 NRYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=/OgmbzzWAatuWGH0AfliuLkJWPcrLquYVkZtJtlEFrM=; b=X8TtAyxPsq2aw9+K7p4caGZI90xemW5GC2NH67ZkkZRBF1nA/CXw7nXEfVn+96MaLd xjdigkYE/Fxler7qa6Xb0NlXzILROfnNkZSr9kE+l/wEaLdkvyjq+vKJY3ndxZcYnxXl +R8Wgg/558stvu3AqacZvFfp27rX+f1FAiK1P+Ql0T7Of1OVjWNzDzDvKIiLbzJOWhLl 9LqHfsnZbDc0G9frATJmtklqqyxXtMveVfgoT6xKNJpa6BFUKq1Y//vslpYB8XsE6yOY gModx3XHzisLW447px5MdO80Gnfmo1Orubv6VMKqv1Mn2+nMflui5myn6srzgtOzxASA AMVg== X-Gm-Message-State: ALoCoQl9OBnSXO9ZTa6p4e3CvYnr/XxykmPfQk1+gS8mcP0dNrHkscfl08Opr163k72QlPN4GsKYS49JIdLJ0hbqn8FULcSP7Q== X-Received: by 10.66.119.136 with SMTP id ku8mr6603180pab.128.1450455533280; Fri, 18 Dec 2015 08:18:53 -0800 (PST) Original-Received: from raman-glaptop2 ([207.198.105.24]) by smtp.gmail.com with ESMTPSA id i20sm473153pfj.51.2015.12.18.08.18.51 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Fri, 18 Dec 2015 08:18:52 -0800 (PST) In-Reply-To: <87egek7y3f.fsf@mbork.pl> (Marcin Borkowski's message of "Fri, 18 Dec 2015 13:14:28 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400e:c03::22d X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:196474 Archived-At: Marcin Borkowski writes: Re installing emms playlists as soundscapes -- I dont see why not -- take a look at the code -- should be easy to do. One reason I eventually landed on randomly repeating nature sounds: With music playlists, streaming radio etc -- the media that is playing changes without being in lock-step with what you're doing. My intuition (completely unproven at this point) is that such switches were actually preventing me from focusing fully on my current activity -- and where I was fully focused, the change in music as the result of one track ending and another starting actually took my focus away. The reason I built this prototype where those changes are in lock-step with my own activity changes wer specifically to mitigate that. That said, this is all still conjecture that will either be proven or disproven by usage over time. emacspeak/lisp/soundscape.el should be runnable in vanilla Emacs -- let me know if you happen to try it and hit any issues > On 2015-12-18, at 04:19, raman wrote: > >> 1 line summary: >> >> Adding "Soundscapes" -- quiet ambient nature sounds, that play in the >> background, and change based on what I'm doing -- eg programming vs >> communicating vs writing. > > Raman, that sounds really, really cool! > > Will it be possible to install e.g. Emms' playlists as soundscapes? > >> Take a look at the docs here >> http://tvraman.github.io/emacspeak/manual/soundscape.html#soundscape >> >> --raman > > Best, --