diff options
author | Tom Willemse | 2016-02-08 01:01:11 +0100 |
---|---|---|
committer | Tom Willemse | 2016-02-08 01:01:11 +0100 |
commit | dc12ea13f6116feb2f2028acac18fc1f5006da5c (patch) | |
tree | 87da818754b32349c2085e4c0b979f172d08496c /emacs/.emacs.d/init-lui.org | |
parent | 90b0f4e5099c189fbc4019a8c63b8e538a117ca4 (diff) | |
download | dotfiles-dc12ea13f6116feb2f2028acac18fc1f5006da5c.tar.gz dotfiles-dc12ea13f6116feb2f2028acac18fc1f5006da5c.zip |
Move some more settings to lui from circe
Diffstat (limited to 'emacs/.emacs.d/init-lui.org')
-rw-r--r-- | emacs/.emacs.d/init-lui.org | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/emacs/.emacs.d/init-lui.org b/emacs/.emacs.d/init-lui.org index 220b075..c880642 100644 --- a/emacs/.emacs.d/init-lui.org +++ b/emacs/.emacs.d/init-lui.org @@ -45,6 +45,27 @@ separately when lui is loaded, not when circe is loaded. (add-hook 'lui-mode-hook #'oni:set-circe-margin-width) #+END_SRC +* Clean-up the channel buffers further + + When chatting with people in an IRC channel, there really isn't much + need for any information in the mode-line. This is mostly because + the channel I'm most active on always has its own window. Visual + line mode is very handy to have in chats, in case I type very long + lines. And the =wrap-prefix= is set so that when I do type long lines, + they are filled nicely to the circe prompt. + + #+BEGIN_SRC emacs-lisp + (defun oni:remove-mode-line () + (setq mode-line-format nil)) + + (defun oni:set-lui-prompt-wrap-prefix () + (setq wrap-prefix " ")) + + (add-hook 'lui-mode-hook #'oni:remove-mode-line) + (add-hook 'lui-mode-hook #'oni:set-lui-prompt-wrap-prefix) + (add-hook 'lui-mode-hook 'visual-line-mode) + #+END_SRC + * Provide the right feature In order to be able to use =(require 'lui-init)= we must first |