Skip to content

Commit 22925dd

Browse files
committed
[Docs] Fix keybindings markup
1 parent 5908de2 commit 22925dd

6 files changed

Lines changed: 76 additions & 76 deletions

File tree

doc/modules/ROOT/pages/configuration.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,12 +141,12 @@ To enable caching unconditionally use this snippet of code:
141141
(setq projectile-enable-caching t)
142142
----
143143

144-
At this point you can try out a Projectile command such as +++<kbd>+++s-p f+++</kbd>+++ (+++<kbd>+++M-x projectile-find-file RET+++</kbd>+++).
144+
At this point you can try out a Projectile command such as kbd:[s-p f] (kbd:[M-x projectile-find-file RET]).
145145

146-
Running +++<kbd>+++C-u s-p f+++</kbd>+++ will invalidate the cache prior to
146+
Running kbd:[C-u s-p f] will invalidate the cache prior to
147147
prompting you for a file to jump to.
148148

149-
Pressing +++<kbd>+++s-p z+++</kbd>+++ will add the currently visited file to the
149+
Pressing kbd:[s-p z] will add the currently visited file to the
150150
cache for current project. Generally files created outside Emacs will
151151
be added to the cache automatically the first time you open them.
152152

@@ -205,7 +205,7 @@ By default, projectile does not include the current project in the list when
205205
switching projects. If you want to include the current project, customize
206206
variable `projectile-current-project-on-switch`.
207207

208-
When running `projectile-switch-project` (+++<kbd>+++s-p p+++</kbd>+++) Projectile invokes
208+
When running `projectile-switch-project` (kbd:[s-p p]) Projectile invokes
209209
the command specified in `projectile-switch-project-action` (by default it is
210210
`projectile-find-file`).
211211

doc/modules/ROOT/pages/contributing.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,4 +79,4 @@ Run all tests with:
7979
$ make test
8080
----
8181

82-
Tests should run fine in `shell-mode` or `term-mode`. It's also possible to use +++<kbd>+++M-x+++</kbd>+++ `compile` (or `helm-make`).
82+
Tests should run fine in `shell-mode` or `term-mode`. It's also possible to use kbd:[M-x] `compile` (or `helm-make`).

doc/modules/ROOT/pages/installation.adoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ The recommended way to install Projectile is via `package.el`.
99
You'll need to have Emacs installed (preferably the latest stable
1010
release). If you're new to Emacs you might want to go through
1111
https://www.gnu.org/software/emacs/tour/index.html[the guided tour of Emacs]
12-
and the built-in tutorial (just press +++<kbd>+++C-h t+++</kbd>+++).
12+
and the built-in tutorial (just press kbd:[C-h t]).
1313

1414
== Installation via package.el
1515

@@ -20,7 +20,7 @@ and http://melpa.org[MELPA].
2020

2121
You can install Projectile with the following command:
2222

23-
+++<kbd>+++M-x package-install [RET] projectile [RET]+++</kbd>+++
23+
kbd:[M-x package-install [RET] projectile [RET]]
2424

2525
or by adding this bit of Emacs Lisp code to your Emacs initialization file
2626
(`.emacs` or `init.el`):
@@ -33,7 +33,7 @@ or by adding this bit of Emacs Lisp code to your Emacs initialization file
3333

3434
If the installation doesn't work try refreshing the package list:
3535

36-
+++<kbd>+++M-x package-refresh-contents [RET]+++</kbd>+++
36+
kbd:[M-x package-refresh-contents [RET]]
3737

3838
Keep in mind that MELPA packages are built automatically from
3939
the `master` branch, meaning bugs might creep in there from time to
@@ -106,7 +106,7 @@ releases of Projectile, you'd declare the following:
106106
----
107107

108108
After placing one of the above s-expressions, evaluate it, for it to take effect
109-
by entering: +++<kbd>+++C-x C-e+++</kbd>+++.
109+
by entering: kbd:[C-x C-e].
110110

111111
For further configuration options with `use-package`, consult the
112112
official https://github.com/jwiegley/use-package[use-package repository].
@@ -119,7 +119,7 @@ the https://github.com/dimitri/el-get[el-get] package manager.
119119
Provided you've already installed `el-get` you can install Projectile with the
120120
following command:
121121

122-
+++<kbd>+++M-x el-get-install [RET] projectile [RET]+++</kbd>+++
122+
kbd:[M-x el-get-install [RET] projectile [RET]]
123123

124124
== Installation on Debian and Ubuntu
125125

doc/modules/ROOT/pages/projects.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ function. It could also be used to e.g. add such a function to a key
482482
map.
483483

484484
You can also quickly visit or create the `dir-locals-file` with
485-
+++<kbd>+++s-p E+++</kbd>+++ (+++<kbd>+++M-x projectile-edit-dir-locals RET+++</kbd>+++).
485+
kbd:[s-p E] (kbd:[M-x projectile-edit-dir-locals RET]).
486486

487487
Here are a few examples of how to use this feature with Projectile.
488488

doc/modules/ROOT/pages/troubleshooting.adoc

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ problem.
55

66
Generally, it's not a bad idea to configure Emacs to spit the backtrace on error
77
(instead of just logging the error in the `*Messages*` buffer). You can toggle
8-
this behavior by using +++<kbd>+++M-x+++</kbd>+++ `toggle-debug-on-error`.
8+
this behavior by using kbd:[M-x] `toggle-debug-on-error`.
99

1010
== Debugging Projectile commands
1111

@@ -18,11 +18,11 @@ TIP: Here's a https://www.youtube.com/watch?v=odkYXXYOxpo[great crash course] on
1818

1919
To debug some command you need to do the following:
2020

21-
* Figure out the name of the command you want to debug (e.g. by using +++<kbd>+++C-h k+++</kbd>+++
21+
* Figure out the name of the command you want to debug (e.g. by using kbd:[C-h k]
2222
to see which command is associated with some keybinding)
23-
* Find the source of the command (e.g. by using +++<kbd>+++M-x+++</kbd>+++ `find-function`
24-
+++<kbd>+++RET+++</kbd>+++ `function-name`)
25-
* Press +++<kbd>+++C-u C-M-x+++</kbd>+++ while in the body of the function
23+
* Find the source of the command (e.g. by using kbd:[M-x] `find-function`
24+
kbd:[RET] `function-name`)
25+
* Press kbd:[C-u C-M-x] while in the body of the function
2626
* Run the command again
2727

2828
At this point you'll be dropped in the debugger and you can step forward until
@@ -34,9 +34,9 @@ Emacs comes with a https://www.gnu.org/software/emacs/manual/html_node/elisp/Pro
3434
profiler]. Using
3535
it is pretty simple:
3636

37-
. Start it with +++<kbd>+++M-x+++</kbd>+++ `profiler-start`.
37+
. Start it with kbd:[M-x] `profiler-start`.
3838
. Invoke some commands.
39-
. Get the report with +++<kbd>+++M-x+++</kbd>+++ `profiler-report`.
39+
. Get the report with kbd:[M-x] `profiler-report`.
4040

4141
TIP: If you intend to share the profiling results with someone it's a good idea to
4242
save the report buffer to a file with <kbd>C-x C-w</kbd>.
@@ -49,9 +49,9 @@ Sometimes a Projectile command might hang for a while (e.g. due to a bug or a
4949
configuration issue). Such problems are super annoying, but are relatively easy
5050
to debug. Here are a few steps you can take in such situations:
5151

52-
* Do +++<kbd>+++M-x+++</kbd>+++ `toggle-debug-on-quit`
52+
* Do kbd:[M-x] `toggle-debug-on-quit`
5353
* Reproduce the problem
54-
* Hit +++<kbd>+++C-g+++</kbd>+++ around 10 seconds into the hang
54+
* Hit kbd:[C-g] around 10 seconds into the hang
5555

5656
This will bring up a backtrace with the entire function stack, including
5757
function arguments. So you should be able to figure out what's going on (or at

doc/modules/ROOT/pages/usage.adoc

Lines changed: 56 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ You can learn more about Projectile's notion of a project xref:projects.adoc[her
4141

4242
You need to know only a handful of Projectile commands to start benefiting from it.
4343

44-
* Find file in current project (+++<kbd>+++s-p f+++</kbd>+++)
45-
* Switch project (+++<kbd>+++s-p p+++</kbd>+++)
46-
* Grep in project (+++<kbd>+++s-p s g+++</kbd>+++)
47-
* Replace in project (+++<kbd>+++s-p r+++</kbd>+++)
48-
* Invoke a command via the Projectile Commander (+++<kbd>+++s-p m+++</kbd>+++)
44+
* Find file in current project (kbd:[s-p f])
45+
* Switch project (kbd:[s-p p])
46+
* Grep in project (kbd:[s-p s g])
47+
* Replace in project (kbd:[s-p r])
48+
* Invoke a command via the Projectile Commander (kbd:[s-p m])
4949

5050
The next section lists many more commands, but the basics can get you pretty far.
5151

@@ -61,160 +61,160 @@ Here's a list of the interactive Emacs Lisp functions, provided by Projectile:
6161
|===
6262
| Keybinding | Description
6363

64-
| +++<kbd>+++s-p f+++</kbd>+++
64+
| kbd:[s-p f]
6565
| Display a list of all files in the project. With a prefix argument it will clear the cache first.
6666

67-
| +++<kbd>+++s-p F+++</kbd>+++
67+
| kbd:[s-p F]
6868
| Display a list of all files in all known projects.
6969

70-
| +++<kbd>+++s-p g+++</kbd>+++
70+
| kbd:[s-p g]
7171
| Display a list of all files at point in the project. With a prefix argument it will clear the cache first.
7272

73-
| +++<kbd>+++s-p 4 f+++</kbd>+++
73+
| kbd:[s-p 4 f]
7474
| Jump to a project's file using completion and show it in another window.
7575

76-
| +++<kbd>+++s-p 4 g+++</kbd>+++
76+
| kbd:[s-p 4 g]
7777
| Jump to a project's file based on context at point and show it in another window.
7878

79-
| +++<kbd>+++s-p 5 f+++</kbd>+++
79+
| kbd:[s-p 5 f]
8080
| Jump to a project's file using completion and show it in another frame.
8181

82-
| +++<kbd>+++s-p 5 g+++</kbd>+++
82+
| kbd:[s-p 5 g]
8383
| Jump to a project's file based on context at point and show it in another frame.
8484

85-
| +++<kbd>+++s-p d+++</kbd>+++
85+
| kbd:[s-p d]
8686
| Display a list of all directories in the project. With a prefix argument it will clear the cache first.
8787

88-
| +++<kbd>+++s-p 4 d+++</kbd>+++
88+
| kbd:[s-p 4 d]
8989
| Switch to a project directory and show it in another window.
9090

91-
| +++<kbd>+++s-p 5 d+++</kbd>+++
91+
| kbd:[s-p 5 d]
9292
| Switch to a project directory and show it in another frame.
9393

94-
| +++<kbd>+++s-p T+++</kbd>+++
94+
| kbd:[s-p T]
9595
| Display a list of all test files(specs, features, etc) in the project.
9696

97-
| +++<kbd>+++s-p l+++</kbd>+++
97+
| kbd:[s-p l]
9898
| Display a list of all files in a directory (that's not necessarily a project)
9999

100-
| +++<kbd>+++s-p s g+++</kbd>+++
100+
| kbd:[s-p s g]
101101
| Run grep on the files in the project.
102102

103-
| +++<kbd>+++M-- s-p s g+++</kbd>+++
103+
| kbd:[M-- s-p s g]
104104
| Run grep on `projectile-grep-default-files` in the project.
105105

106-
| +++<kbd>+++s-p v+++</kbd>+++
106+
| kbd:[s-p v]
107107
| Run `vc-dir` on the root directory of the project.
108108

109-
| +++<kbd>+++s-p V+++</kbd>+++
109+
| kbd:[s-p V]
110110
| Browse dirty version controlled projects.
111111

112-
| +++<kbd>+++s-p b+++</kbd>+++
112+
| kbd:[s-p b]
113113
| Display a list of all project buffers currently open.
114114

115-
| +++<kbd>+++s-p 4 b+++</kbd>+++
115+
| kbd:[s-p 4 b]
116116
| Switch to a project buffer and show it in another window.
117117

118-
| +++<kbd>+++s-p 5 b+++</kbd>+++
118+
| kbd:[s-p 5 b]
119119
| Switch to a project buffer and show it in another frame.
120120

121-
| +++<kbd>+++s-p 4 C-o+++</kbd>+++
121+
| kbd:[s-p 4 C-o]
122122
| Display a project buffer in another window without selecting it.
123123

124-
| +++<kbd>+++s-p a+++</kbd>+++
124+
| kbd:[s-p a]
125125
| Switch between files with the same name but different extensions.
126126

127-
| +++<kbd>+++s-p 4 a+++</kbd>+++
127+
| kbd:[s-p 4 a]
128128
| Switch between files with the same name but different extensions in other window.
129129

130-
| +++<kbd>+++s-p 5 a+++</kbd>+++
130+
| kbd:[s-p 5 a]
131131
| Switch between files with the same name but different extensions in other frame.
132132

133-
| +++<kbd>+++s-p o+++</kbd>+++
133+
| kbd:[s-p o]
134134
| Runs `multi-occur` on all project buffers currently open.
135135

136-
| +++<kbd>+++s-p r+++</kbd>+++
136+
| kbd:[s-p r]
137137
| Runs interactive query-replace on all files in the projects.
138138

139-
| +++<kbd>+++s-p i+++</kbd>+++
139+
| kbd:[s-p i]
140140
| Invalidates the project cache (if existing).
141141

142-
| +++<kbd>+++s-p R+++</kbd>+++
142+
| kbd:[s-p R]
143143
| Regenerates the projects `TAGS` file.
144144

145-
| +++<kbd>+++s-p j+++</kbd>+++
145+
| kbd:[s-p j]
146146
| Find tag in project's `TAGS` file.
147147

148-
| +++<kbd>+++s-p k+++</kbd>+++
148+
| kbd:[s-p k]
149149
| Kills all project buffers.
150150

151-
| +++<kbd>+++s-p D+++</kbd>+++
151+
| kbd:[s-p D]
152152
| Opens the root of the project in `dired`.
153153

154-
| +++<kbd>+++s-p 4 D+++</kbd>+++
154+
| kbd:[s-p 4 D]
155155
| Opens the root of the project in `dired` in another window.
156156

157-
| +++<kbd>+++s-p 5 D+++</kbd>+++
157+
| kbd:[s-p 5 D]
158158
| Opens the root of the project in `dired` in another frame.
159159

160-
| +++<kbd>+++s-p e+++</kbd>+++
160+
| kbd:[s-p e]
161161
| Shows a list of recently visited project files.
162162

163-
| +++<kbd>+++s-p left+++</kbd>+++
163+
| kbd:[s-p left]
164164
| Switch to the previous project buffer.
165165

166-
| +++<kbd>+++s-p right+++</kbd>+++
166+
| kbd:[s-p right]
167167
| Switch to the next project buffer.
168168

169-
| +++<kbd>+++s-p E+++</kbd>+++
169+
| kbd:[s-p E]
170170
| Opens the root `dir-locals-file` of the project.
171171

172-
| +++<kbd>+++s-p s s+++</kbd>+++
172+
| kbd:[s-p s s]
173173
| Runs `ag` on the project, performing a literal search. Requires the presence of `ag.el`. With a prefix argument it will perform a regex search.
174174

175-
| +++<kbd>+++s-p !+++</kbd>+++
175+
| kbd:[s-p !]
176176
| Runs `shell-command` in the root directory of the project.
177177

178-
| +++<kbd>+++s-p &+++</kbd>+++
178+
| kbd:[s-p &]
179179
| Runs `async-shell-command` in the root directory of the project.
180180

181-
| +++<kbd>+++s-p C+++</kbd>+++
181+
| kbd:[s-p C]
182182
| Runs a standard configure command for your type of project.
183183

184-
| +++<kbd>+++s-p c+++</kbd>+++
184+
| kbd:[s-p c]
185185
| Runs a standard compilation command for your type of project.
186186

187-
| +++<kbd>+++s-p P+++</kbd>+++
187+
| kbd:[s-p P]
188188
| Runs a standard test command for your type of project.
189189

190-
| +++<kbd>+++s-p t+++</kbd>+++
190+
| kbd:[s-p t]
191191
| Toggle between an implementation file and its test file.
192192

193-
| +++<kbd>+++s-p 4 t+++</kbd>+++
193+
| kbd:[s-p 4 t]
194194
| Jump to implementation or test file in other window.
195195

196-
| +++<kbd>+++s-p 5 t+++</kbd>+++
196+
| kbd:[s-p 5 t]
197197
| Jump to implementation or test file in other frame.
198198

199-
| +++<kbd>+++s-p z+++</kbd>+++
199+
| kbd:[s-p z]
200200
| Adds the currently visited file to the cache.
201201

202-
| +++<kbd>+++s-p p+++</kbd>+++
202+
| kbd:[s-p p]
203203
| Display a list of known projects you can switch to.
204204

205-
| +++<kbd>+++s-p S+++</kbd>+++
205+
| kbd:[s-p S]
206206
| Save all project buffers.
207207

208-
| +++<kbd>+++s-p m+++</kbd>+++
208+
| kbd:[s-p m]
209209
| Run the commander (an interface to run commands with a single key).
210210

211-
| +++<kbd>+++s-p ESC+++</kbd>+++
211+
| kbd:[s-p ESC]
212212
| Switch to the most recently selected Projectile buffer.
213213
|===
214214

215215
If you ever forget any of Projectile's keybindings just do a:
216216

217-
+++<kbd>+++s-p C-h+++</kbd>+++
217+
kbd:[s-p C-h]
218218

219219
It is possible to add additional commands to
220220
`projectile-command-map` referenced by the prefix key in

0 commit comments

Comments
 (0)