Move all lui settings to separate file
This commit is contained in:
parent
0e21fddb0c
commit
23e6561685
2 changed files with 15 additions and 17 deletions
|
@ -396,20 +396,6 @@
|
|||
|
||||
(with-eval-after-load 'lui (load "oni-lui-init"))
|
||||
|
||||
(defun oni:set-circe-margin-width ()
|
||||
(setq right-margin-width 5))
|
||||
|
||||
(add-hook 'lui-mode-hook #'oni:set-circe-margin-width)
|
||||
|
||||
(defun oni:set-lui-prompt-wrap-prefix ()
|
||||
(setq wrap-prefix " "))
|
||||
|
||||
(add-hook 'lui-mode-hook #'oni:set-lui-prompt-wrap-prefix)
|
||||
|
||||
(add-hook 'lui-mode-hook 'visual-line-mode)
|
||||
|
||||
(setq lui-fill-type nil)
|
||||
|
||||
(eval-when-compile (require 'jabber))
|
||||
|
||||
(setq jabber-account-list
|
||||
|
|
|
@ -27,11 +27,23 @@
|
|||
|
||||
(require 'lui)
|
||||
|
||||
(with-eval-after-load 'lui
|
||||
(setq lui-time-stamp-position 'right-margin))
|
||||
(defun oni-lui-init--set-margin-width ()
|
||||
"Set the margin width to 5."
|
||||
(setq right-margin-width 5))
|
||||
|
||||
(defun oni-lui-init--set-prompt-wrap-prefix ()
|
||||
"Set the wrap prefix to two spaces."
|
||||
(setq wrap-prefix " "))
|
||||
|
||||
(with-eval-after-load 'lui
|
||||
(setq lui-time-stamp-format "%H:%M"))
|
||||
(setq lui-time-stamp-position 'right-margin
|
||||
lui-time-stamp-format "%H:%M"))
|
||||
|
||||
(add-hook 'lui-mode-hook #'oni-lui-init--set-margin-width)
|
||||
(add-hook 'lui-mode-hook #'oni-lui-init--set-prompt-wrap-prefix)
|
||||
(add-hook 'lui-mode-hook 'visual-line-mode)
|
||||
|
||||
(setq lui-fill-type nil)
|
||||
|
||||
(provide 'oni-lui-init)
|
||||
;;; oni-lui-init.el ends here
|
||||
|
|
Loading…
Reference in a new issue