Skip to content

Commit

Permalink
Ensure linum-relative is not enabled in helm with linum-relative-glob…
Browse files Browse the repository at this point in the history
…al-mode (#29).

* linum-relative.el (linum-relative-global-mode): Do it.
  • Loading branch information
thierryvolpiatto committed May 10, 2016
1 parent 0b5dc41 commit 89bdee2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion linum-relative.el
Expand Up @@ -192,7 +192,8 @@ linum-releative will show the real line number at current line."

;;;###autoload
(define-global-minor-mode linum-relative-global-mode
linum-relative-mode (lambda () (linum-relative-mode 1)))
linum-relative-mode (lambda () (unless (linum-relative-in-helm-p)
(linum-relative-mode 1))))

;;;; Interaction of helm with linum-relative

Expand Down

0 comments on commit 89bdee2

Please sign in to comment.