Bakefile integration

Editors

Vim

Incomplete syntax-highlighting file for Vim is included with Bakefile sources (latest version is here). Copy this file to your ~/.vim/syntax/ directory and add the following to ~/.vim/filetype.vim:

" Bakefile syntax file
au BufNewFile,BufRead *.bkl setf bakefile

Emacs

font-lock-mode and some XML syntax highlighter (e.g.  nXML or SGML) works well enough. That said, nXML is vastly superior to SGML mode.

Add the following to your ~/.emacs file to make this automatic:

; Globbaly turn on font lock mode
(global-font-lock-mode 1)
; link extension to mode
(setq auto-mode-alist (cons '("\\.bkl$" . nxml-mode) auto-mode-alist))
(setq auto-mode-alist (cons '("\\.bkgen$" . nxml-mode) auto-mode-alist))

On a GNU/Linux Debian Etch system, nXML is contained in the 'nxml-mode' package.

Shell auto-completion

Auto-completion file for bash is included with Bakefile sources, see the latest version here. This should be usable with zsh too in its bash compatibility mode.

Colorizing

The output of bakefile and bakefile_gen can be made pretty using  Generic Colouriser. Here's a GRC config file that should be used for these two commands: attachment:bakefile.grc Download

Attachments