From a722d6fa9e3dd9d358e47b6516c066220fd4cab4 Mon Sep 17 00:00:00 2001 From: Bozhidar Batsov Date: Tue, 8 Dec 2020 21:07:59 +0200 Subject: [Docs] Add a note about extending Projectile's commander --- doc/modules/ROOT/pages/usage.adoc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/doc/modules/ROOT/pages/usage.adoc b/doc/modules/ROOT/pages/usage.adoc index ac45cfb..b23291d 100644 --- a/doc/modules/ROOT/pages/usage.adoc +++ b/doc/modules/ROOT/pages/usage.adoc @@ -361,3 +361,14 @@ The commander was created with the idea to provide a powerful project switching | kbd:[v] | Open project root in vc-dir or magit. |=== + +You can add additional commands to the commander like this: + +[source,elisp] +---- +(def-projectile-commander-method ?f + "Find file in project." + (projectile-find-file)) +---- + +Place such snippets after ``projectile-mode``'s init code. -- cgit v1.0