Skip to content

zeek/emacs-zeek-mode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

An Emacs mode for Zeek scripts

This is a very basic Emacs major mode for Zeek scripts. Supported features:

  • Syntax highlighting

  • Script formatting and parsing via zeekscript, when available: C-c C-f formats the current buffer; C-c C-p parses it and renders the parse tree into a new buffer. It also provides zeek-format-before-save, which can be used in a hook to format Zeek buffers before saving them.

  • Whitespace configuration: TAB always inserts tab character. The mode also highlights trailing whitespace as well as spaces used after tabs.

Automatic indentation isn't yet supported, but use of zeekscript for formatting approximates it.

Installation

Place zeek-mode.el in a directory accessible to Emacs and source it as follows:

(require 'zeek-mode)

If you'd like your file to be automatically formatted before saving, also add

(add-hook 'before-save-hook #'zeek-format-before-save)

After requiring 'zeek-mode.

About

An Emacs major mode for editing Zeek scripts

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •