aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorBozhidar Batsov <bozhidar@batsov.com>2020-12-08 21:07:59 +0200
committerBozhidar Batsov <bozhidar@batsov.com>2020-12-08 21:07:59 +0200
commita722d6fa9e3dd9d358e47b6516c066220fd4cab4 (patch)
tree73e33818c6ec01d4ff409a68543d6e57f67dd5ad /doc
parent523159b550408a8834613859ac90212dfc046e89 (diff)
[Docs] Add a note about extending Projectile's commander
Diffstat (limited to 'doc')
-rw-r--r--doc/modules/ROOT/pages/usage.adoc11
1 files changed, 11 insertions, 0 deletions
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.