From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: raman@google.com (T.V Raman) Newsgroups: gmane.emacs.devel Subject: Re: HowTo: Run a hook when a buffer becomes "current" Date: Fri, 18 Dec 2015 10:28:56 -0800 Message-ID: <22132.20584.453482.667620@retriever.mtv.corp.google.com> References: <87r3ikiknq.fsf@red-bean.com> <87egek7y3f.fsf@mbork.pl> <87y4crd6tt.fsf@fencepost.gnu.org> <87a8p78w24.fsf@mbork.pl> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1450463358 9933 80.91.229.3 (18 Dec 2015 18:29:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 18 Dec 2015 18:29:18 +0000 (UTC) Cc: kfogel@red-bean.com, dak@gnu.org, emacs-devel@gnu.org, raman@google.com To: mbork@mbork.pl Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 18 19:29:09 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 1a9zm7-0001qk-G2 for ged-emacs-devel@m.gmane.org; Fri, 18 Dec 2015 19:29:07 +0100 Original-Received: from localhost ([::1]:34558 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a9zm6-0003CZ-L8 for ged-emacs-devel@m.gmane.org; Fri, 18 Dec 2015 13:29:06 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35074) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a9zm1-0003CM-NI for emacs-devel@gnu.org; Fri, 18 Dec 2015 13:29:02 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a9zm0-0008Fd-Nw for emacs-devel@gnu.org; Fri, 18 Dec 2015 13:29:01 -0500 Original-Received: from mail-pf0-x235.google.com ([2607:f8b0:400e:c00::235]:36676) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a9zm0-0008FW-Hk for emacs-devel@gnu.org; Fri, 18 Dec 2015 13:29:00 -0500 Original-Received: by mail-pf0-x235.google.com with SMTP id o64so52786918pfb.3 for ; Fri, 18 Dec 2015 10:29:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:mime-version:content-type:content-transfer-encoding:message-id :date:to:cc:subject:in-reply-to:references; bh=jQK1yzxVeJjUMs02vdxt8R1Z5nH7rLMPgaFmcMyI3ho=; b=i39+jDzW2yzPbXZPiWjKI04qpRp6TI8Bn7gxwrEHZCX9OAGiURNfZVC+B/UBwEmMw7 QwkppFyZi9nbLb9udrO+EKI+zUm/9tga7wSflJlbtoQvgvgdlsS8qZN2GfQs26WIutUj qbHGcQj6xn7xwbSDv4BHDDSWuiQzm7a+kh/564ZqYkQa3PCPPPi7K07CKsFSu7VyWR7k zdW8skKOpBW8VbIbHYrMc5Xk/8Fi98RnmEmUGb/IlhdW95h3YD5JfLrsugK04lIuwuqZ hvmDDd5Zr1BNq1gNAQ6KqP6HvQguMSKm7xd4TNFEXOCUCsQAkul4B4LtwDxvMN1qYZH4 0q/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:mime-version:content-type :content-transfer-encoding:message-id:date:to:cc:subject:in-reply-to :references; bh=jQK1yzxVeJjUMs02vdxt8R1Z5nH7rLMPgaFmcMyI3ho=; b=aKWHaFt7JNhP9o1Esc521VMx2xXFgEarLJNNl4zzHTtxVQ4jtZzc4Altkku5UjSEEC iJc24PitzWolXDzALN4Gmdo9vmjZQG22b+PlkvVC37J/07xmSL3xJwFxsjh3R+UttDbw HjpAXgp1VGa1j7CIPZPtgceHujIx2ktTNJvN5xRDCY/K/81u5IgMR28kd4yhtx/yax1r xq6p9DnUYoiA5zxumju+Li/fszvvYRvqpu4llw1kfTFAMGNaaCWlpZm34bF3EwIrifbx XW1DOkmRWRwRRMiwHPWuED++ITZb9NeMErgcOmSb/1RAs68xKtxA5pXdsJJ4y7rAW/RF V6Ag== X-Gm-Message-State: ALoCoQk3UaWPTL+btXZGjGpWKciYab1kcDbx1pgk7Dg8+fDSC2wVWfNqPQp2SUXQHTgasQ6tIQ96xK2H+xzvioYalahjR3DFTQ== X-Received: by 10.98.14.129 with SMTP id 1mr7366619pfo.127.1450463339792; Fri, 18 Dec 2015 10:28:59 -0800 (PST) Original-Received: from retriever.mtv.corp.google.com ([172.22.162.32]) by smtp.gmail.com with ESMTPSA id ux2sm23667090pac.46.2015.12.18.10.28.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 Dec 2015 10:28:57 -0800 (PST) Original-Received: by retriever.mtv.corp.google.com (Postfix, from userid 13930) id 9B40E1A1226; Fri, 18 Dec 2015 10:28:56 -0800 (PST) In-Reply-To: <87a8p78w24.fsf@mbork.pl> X-Mailer: VM 8.1.1 under 25.0.50.1 (x86_64-unknown-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400e:c00::235 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:196485 Archived-At: In general, soft nature sounds eg light-rain, soft waves, wind -- that repeat in a pseudo-random pattern appear to work well in this regard -- the repetition actually appears to aid in concentration. Anyway, try out boodler.org -- it's a python package and is fun to play with. Marcin Borkowski writes: > > > On 2015-12-18, at 18:06, David Kastrup wrote: > > > raman writes: > > > >> 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. > > > > Well, I'm a musician in some reasonable sense of the word. Any music is > > distracting me from programming. And the better, the worse. > > Interesting. > > My subjective feeling is that some music distracts me more: namely, > vocal more than instrumental, and unknown more than known. > > I also did some measurements (a long time ago), and it turned out that > music and learning did not go well together. > > Best, > > -- > Marcin Borkowski > http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski > Faculty of Mathematics and Computer Science > Adam Mickiewicz University -- --