bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#6871: Please make linum-mode per buffer, not per major mode


From: Stefan Monnier
Subject: bug#6871: Please make linum-mode per buffer, not per major mode
Date: Tue, 17 Aug 2010 10:59:13 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

> Line numbers should work even in multi major mode buffers. Please add
> the following lines to linum.el:

> (put 'linum-overlays  'permanent-local t)
> (put 'linum-available 'permanent-local t)
> (put 'linum-mode      'permanent-local t)

I don't think that's going to be sufficient: you'll probably at least
also want to remove the

        (add-hook 'change-major-mode-hook 'linum-delete-overlays nil t)

I.e. you can't just make some vars permanent-local, you have to adjust
the major mode from "mode-specific" to "permanent-local".


        Stefan





reply via email to

[Prev in Thread] Current Thread [Next in Thread]