From feef062344d38b371f04a705772f0fb9d5d508b4 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 3 Jan 2013 18:57:30 +0100 Subject: [PATCH] fix asciidoc markup in README --- README.asciidoc | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/README.asciidoc b/README.asciidoc index 6d7a5e90..8eaf45e6 100644 --- a/README.asciidoc +++ b/README.asciidoc @@ -197,8 +197,8 @@ Commands are entered using +:+. * +nop+: does nothing, but as with every other commands, arguments may be evaluated. So nop can be used for example to execute a shell command while being sure that it's output will not be interpreted by kak. - :%sh{ echo echo tchou } will echo tchou in kakoune, wherease - :nop %sh{ echo echo tchou } will not, but both will execute the + +:%sh{ echo echo tchou }+ will echo tchou in kakoune, whereas + +:nop %sh{ echo echo tchou }+ will not, but both will execute the shell command. String syntax @@ -227,10 +227,13 @@ Highlighters Manipulation of the displayed text is done through highlighters, which can be added or removed with the command + ----------------------------------------------------- :addhl ----------------------------------------------------- + and + ---------------------- :rmhl ---------------------- @@ -258,10 +261,13 @@ Filters Filters can be installed to interact with buffer modifications. They can be added or removed with + ----------------------------------------------- :addfilter ----------------------------------------------- + and + --------------------- :rmfilter --------------------- @@ -284,9 +290,11 @@ Hooks commands can be registred to be executed when certain events arise. to register a hook, use the hook command. + ------------------------------------------------------ :hook ------------------------------------------------------ + can be either global, buffer or window, the scope are hierarchical, meaning that a Window calling a hook will execute it's own, the buffer ones and the global ones. @@ -296,6 +304,7 @@ called. for example, to automatically use line numbering with .cc files, use the following command: + ----------------------------------------------------- :hook global WinCreate .*\.cc %{ addhl number_lines } ----------------------------------------------------- @@ -318,6 +327,7 @@ Some of kakoune state is available through environment variables: for example you can print informations on the current file in the status line using: + ------------------------------- :echo %sh{ ls -l $kak_bufname } ------------------------------- @@ -329,6 +339,7 @@ Similar to shell expansion, register contents and options values can be accessed through %reg{} and %opt{