autocommand で関数を使う

通常は、コマンドの文字列を指定できるのみだが

  let liexe = liberator.execute;
  liberator.execute = function (fun, modifiers) {
    if (fun instanceof Function) {
      return fun();
    }
    liexe.apply(liberator, arguments);
  };

と、しておくと

  autocommands.add(
    'LocationChange',
    /reader\.livedoor\.com\/reader\//,
    function () plugins.feedKey.setup("j k s a p o v c <Space> <S-Space> z b < >".split(/ +/))
  );

みたいに使える。