From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas =?UTF-8?B?UsO2bm5xdWlzdA==?= Newsgroups: gmane.emacs.help Subject: Re: Avoid linum line numbering in Speedbar window Date: Mon, 7 May 2012 14:22:57 +0200 Message-ID: <20120507142257.59beb997@debian.localdomain> References: <20120503011204.19793ea2@debian.localdomain> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA256; boundary="Sig_/eoZ3ZCN4sEeOr11rVJKeCiQ"; protocol="application/pgp-signature" X-Trace: dough.gmane.org 1336393409 31346 80.91.229.3 (7 May 2012 12:23:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 7 May 2012 12:23:29 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon May 07 14:23:26 2012 Return-path: Envelope-to: geh-help-gnu-emacs@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 1SRMyC-0005tJ-Mj for geh-help-gnu-emacs@m.gmane.org; Mon, 07 May 2012 14:23:16 +0200 Original-Received: from localhost ([::1]:54477 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SRMyB-0006h4-MX for geh-help-gnu-emacs@m.gmane.org; Mon, 07 May 2012 08:23:15 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:52868) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SRMy5-0006go-FT for help-gnu-emacs@gnu.org; Mon, 07 May 2012 08:23:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SRMxz-0006PI-32 for help-gnu-emacs@gnu.org; Mon, 07 May 2012 08:23:09 -0400 Original-Received: from csmtp1.one.com ([195.47.247.21]:3601) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SRMxy-0006OY-Sp for help-gnu-emacs@gnu.org; Mon, 07 May 2012 08:23:03 -0400 Original-Received: from debian.localdomain (h237n4c1o269.bredband.skanova.com [81.231.58.237]) by csmtp1.one.com (Postfix) with ESMTPA id 0F0A72042A512 for ; Mon, 7 May 2012 12:23:00 +0000 (UTC) In-Reply-To: X-Mailer: Claws Mail 3.8.0cvs39 (GTK+ 2.20.1; x86_64-unknown-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 195.47.247.21 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:84750 Archived-At: --Sig_/eoZ3ZCN4sEeOr11rVJKeCiQ Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Thu, 03 May 2012 13:39:26 +0200 Tom Willemsen wrote: > Hey Andreas, >=20 > On Thu 03 May 2012 01:12:04 AM CEST, Andreas R=C3=B6nnquist wrote: >=20 > > - is there any nice and simple way to show line-numbers in every > > window, _except_ in the Speedbar window? >=20 > My first idea would be adding the following to your emacs init file: >=20 > (add-hook 'speedbar-mode-hook '(lambda () (linum-mode -1))) Your hint took me some ways to the goal - but it did quite the opposite, showed line numbers in the Speedbar, and none in the file I was editing :) However - I did play around with it (and searched around on the web) - and found find-file-hook and finally ended up with=20 (add-hook 'find-file-hook (lambda () (linum-mode 1))) Now it work exactly the way I want -=20 Thanks - your hint showed me the right direction! /Andreas --Sig_/eoZ3ZCN4sEeOr11rVJKeCiQ Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQIcBAEBCAAGBQJPp76hAAoJEBlLYxqy2iiIuP0QAKO+IBabY2TjZgx4ieTQSbyM q/qtpWLb6WTyxqxnxLt/jwAbxMvRyPbh2SF3GDk1BxCQwwWctJNZyDVV1jBqgKt2 /JEJFq0tKWQqojvftFe/iN9aLNFi1PSQXoC7WnMVoyeXktI5BfX46HOuJJEqo+Yb W588aGM268mqR+czrt5APggnZfdc7sK0lXT1PlFv2FVJx5i8k5NMsGDb0tro3W+M mkCFE7FiL902PbqGCzTePxtyedsMBL/bPfpOA96E2IkYDSoe4GUSJaoMl45dPWYm YoVb0y7cqO/FCxduhL/cvjHUzHLCvluc/fstuQY4Qm9Jm9V2WpCa2YVglycq6Vzi TTRtQmtfjcBPH6bDoloWMaAQqgu+GoEtncBkdWKLVPEO3kk7t8vAf0FY6CRRC5S0 pR9eMoJfvY0Nr7v6op0H8e3qZ4EPfGd8FV6YVzxYVpg4kT/bJd+30yiZ3LjUc9YH n5xKoB5EGI7+h6QmXf+UNfGp7wYx4wN2NcQWv1H0HYs32y6mdDQIM4jOt/rw/cCe 6z6/Xl/mLIAI66DpKbTDFqjp03CvvT/0k84EAQN+PEequ+okSRJ0+ufK5tHCLZHo je4sw1HjNCDwajjlV+wkXwMVyHeQB1tC0OTr8UO5MGsUCcViMhEjUv/xDKlI/6ar qH7IV7ryBpmpFVJ7X8gK =amjp -----END PGP SIGNATURE----- --Sig_/eoZ3ZCN4sEeOr11rVJKeCiQ--