Skip to content

defaultxr/weechat-log-mode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

weechat-log-mode

This package provides a simple Emacs mode for viewing WeeChat log files. Its main feature is basic syntax highlighting to make them easier to read, as well as a few small convenience functions.

Unfortunately it is not possible to use the same highlighting as the WeeChat UI or weechat.el since those colors are usually provided directly by WeeChat itself and are not stored in the log files.

Installation

Download this repository, then put the following in your init.el:

(require 'weechat-log-mode "/path/to/weechat-log-mode/weechat-log-mode.el" t)

After loading weechat-log-mode, opening any files ending in .weechatlog will automatically activate the mode.

weechat-log-mode also provides a command weechat-open-log, which, as the name suggests, can be used to open the log file associated with a channel. If the current buffer is a weechat-mode buffer, it opens the corresponding log. For convenience you may want to bind this to a key in weechat-mode-map like so:

(define-key weechat-mode-map (kbd "C-c C-l") 'weechat-open-log)

There is also a similar command to do the reverse (jump from the log file back to the channel buffer). It is bound to C-c C-l in weechat-log-mode buffers.

Usage

  • C-c C-l - weechat-log-mode-open-channel - Jump from the log file to the equivalent weechat-mode buffer.

Future

  • Improve highlighting
    • Figure out if there’s some way to get the colors from WeeChat
  • Navigation commands?

Links

About

A simple Emacs mode for viewing WeeChat log files.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •