* Avoid linum line numbering in Speedbar window @ 2012-05-02 23:12 Andreas Rönnquist 2012-05-03 11:39 ` Tom Willemsen 0 siblings, 1 reply; 3+ messages in thread From: Andreas Rönnquist @ 2012-05-02 23:12 UTC (permalink / raw) To: help-gnu-emacs [-- Attachment #1: Type: text/plain, Size: 255 bytes --] Hi! Using the Speedbar 1.0 plugin in combination with a the line-numbering plugin 'linum - is there any nice and simple way to show line-numbers in every window, _except_ in the Speedbar window? Help would be greatly appreciated - /Andreas [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 836 bytes --] ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Avoid linum line numbering in Speedbar window 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 0 siblings, 1 reply; 3+ messages in thread From: Tom Willemsen @ 2012-05-03 11:39 UTC (permalink / raw) To: Andreas Rönnquist; +Cc: help-gnu-emacs 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))) ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Avoid linum line numbering in Speedbar window 2012-05-03 11:39 ` Tom Willemsen @ 2012-05-07 12:22 ` Andreas Rönnquist 0 siblings, 0 replies; 3+ messages in thread From: Andreas Rönnquist @ 2012-05-07 12:22 UTC (permalink / raw) To: help-gnu-emacs [-- 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 --] ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-05-07 12:22 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 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 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).