rumcii / emacs-nav

Automatically exported from code.google.com/p/emacs-nav
GNU General Public License v3.0
0 stars 0 forks source link

Nav is showing line numbers #97

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. linum-mode enable
2. open nav buffer

What is the expected output? What do you see instead?

I expected that nav don't show lines numbers (disable linum-mode for this 
buffer), but the linum-mode was enable and the line numbers is show.

Please provide any additional information below.
A temporary solution was add a function to de hook after-change-major-mode-hook 
that disable linum-mode if the buffer name contains "*nav*".

Original issue reported on code.google.com by alangalv...@gmail.com on 25 Jul 2012 at 10:54

GoogleCodeExporter commented 8 years ago
There is a example:

;; Function to disable linum-mode
(defun remove-linum-mode-of-nav-buffer ()
  (unless (equal nil (string-match "*nav*" (buffer-name))) (linum-mode 0) nil)
  )

;; Adding the function to hook
(add-hook 'after-change-major-mode-hook 'remove-linum-mode-of-nav-buffer)

Original comment by alangalv...@gmail.com on 25 Jul 2012 at 11:19

GoogleCodeExporter commented 8 years ago
I had to use (global-linum-mode 1) to reproduce the bug. Checking the proposed 
solution now.

Original comment by issac.tr...@gmail.com on 26 Jul 2012 at 3:11

GoogleCodeExporter commented 8 years ago
The proposed solution didn't work for me with emacs 23.3.1. I recommend setting 
a hooks to enable line numbering for particular kinds of files instead of 
turning it on globally. Closing the issue.

Original comment by issac.tr...@gmail.com on 26 Jul 2012 at 3:34