Merge pull request #1154 from seanfarley/lui-fix

irc: fix lui track bar not being enabled
This commit is contained in:
Henrik Lissner 2019-02-07 00:45:37 -05:00 committed by GitHub
commit 45f7324b54
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -203,9 +203,6 @@ after prompt marker."
(add-hook! 'lui-mode-hook
(add-hook 'evil-insert-state-entry-hook #'+irc|evil-insert nil t))
;; enable a horizontal line marking the last read message
(add-hook 'lui-mode-hook #'enable-lui-track-bar)
(mapc (lambda (cmd) (push cmd +irc-scroll-to-bottom-on-commands))
'(evil-paste-after evil-paste-before evil-open-above evil-open-below)))
@ -229,6 +226,9 @@ Courtesy of esh-mode.el"
(add-hook! 'lui-mode-hook
(add-hook 'pre-command-hook #'+irc|preinput-scroll-to-bottom nil t))
;; enable a horizontal line marking the last read message
(add-hook! 'lui-mode-hook #'enable-lui-track-bar)
(defun +irc|init-lui-margins ()
(setq lui-time-stamp-position 'right-margin
lui-time-stamp-format +irc-time-stamp-format