Skip to content

Commit

Permalink
Merge pull request #34 from thierryvolpiatto/master
Browse files Browse the repository at this point in the history
Ensure linum-relative is not enabled in helm with linum-relative-global-mode (#29).
  • Loading branch information
coldnew committed May 10, 2016
2 parents ed3fccc + 89bdee2 commit b8a99dc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions linum-relative.el
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,6 @@ linum-releative will show the real line number at current line."
(make-local-variable 'linum-relative-last-pos))
(linum-update helm-buffer))

(add-hook 'helm-move-selection-after-hook 'linum-relative-for-helm)

;;;; Advices
(defadvice linum-update (before relative-linum-update activate)
"This advice get the last position of linum."
Expand Down Expand Up @@ -194,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 b8a99dc

Please sign in to comment.