From: "Andreas Rönnquist" <mailinglists@gusnan.se>
To: help-gnu-emacs@gnu.org
Subject: Re: Avoid linum line numbering in Speedbar window
Date: Mon, 7 May 2012 14:22:57 +0200 [thread overview]
Message-ID: <20120507142257.59beb997@debian.localdomain> (raw)
In-Reply-To: <m3r4v1fq8h.fsf@ryuslash.org>
[-- Attachment #1: Type: text/plain, Size: 869 bytes --]
On Thu, 03 May 2012 13:39:26 +0200
Tom Willemsen <tom@ryuslash.org> wrote:
> Hey Andreas,
>
> On Thu 03 May 2012 01:12:04 AM CEST, Andreas Rönnquist wrote:
>
> > - is there any nice and simple way to show line-numbers in every
> > window, _except_ in the Speedbar window?
>
> My first idea would be adding the following to your emacs init file:
>
> (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
(add-hook 'find-file-hook (lambda () (linum-mode 1)))
Now it work exactly the way I want -
Thanks - your hint showed me the right direction!
/Andreas
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
prev parent reply other threads:[~2012-05-07 12:22 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-02 23:12 Avoid linum line numbering in Speedbar window Andreas Rönnquist
2012-05-03 11:39 ` Tom Willemsen
2012-05-07 12:22 ` Andreas Rönnquist [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120507142257.59beb997@debian.localdomain \
--to=mailinglists@gusnan.se \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).