From a2dfcc232cb7c7417780203730de109d542a2e43 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sat, 26 Nov 2011 19:19:08 +0000 Subject: [PATCH] README: document hooks --- README.asciidoc | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.asciidoc b/README.asciidoc index cd1ed4bf..db1b4945 100644 --- a/README.asciidoc +++ b/README.asciidoc @@ -121,3 +121,16 @@ existing filters are: * *hlcpp*: quick'n'dirty c++ code highlighter * *number_lines*: show line numbers * *regex*: highlight a regex, takes 3 parameters + +Hooks +----- + +commands can be registred to be executed when certain events arise. +to register a hook, use the hook command. + +:hook ... + +for example, to automatically use cplusplus highlighting with .cc files, +use the following command: + +:hook WinCreate .*\.cc addfilter hlcpp