Skip to content

Commit

Permalink
Put quotes around the examples of emacs key syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
glguy committed Aug 2, 2024
1 parent 5c3bc39 commit 6edc264
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Client/Configuration.hs
Original file line number Diff line number Diff line change
Expand Up @@ -365,23 +365,23 @@ keyBindingSpec = actBindingSpec <!> cmdBindingSpec <!> unbindingSpec
actBindingSpec :: ValueSpec (KeyMap -> KeyMap)
actBindingSpec = sectionsSpec "action-binding" $
do ~(m,k) <- reqSection' "bind" keySpec
"Key to be bound (e.g. a, C-b, M-c C-M-d)"
"Key to be bound (e.g. \"a\", \"C-b\", \"M-c\", \"C-M-d\")"
a <- reqSection "action"
"Action name (see `/keymap`)"
return (addKeyBinding m k a)

cmdBindingSpec :: ValueSpec (KeyMap -> KeyMap)
cmdBindingSpec = sectionsSpec "command-binding" $
do ~(m,k) <- reqSection' "bind" keySpec
"Key to be bound (e.g. a, C-b, M-c C-M-d)"
"Key to be bound (e.g. \"a\", \"C-b\", \"M-c\", \"C-M-d\")"
cmd <- reqSection "command"
"Client command to execute (exclude leading `/`)"
return (addKeyBinding m k (ActCommand cmd))

unbindingSpec :: ValueSpec (KeyMap -> KeyMap)
unbindingSpec = sectionsSpec "remove-binding" $
do ~(m,k) <- reqSection' "unbind" keySpec
"Key to be unbound (e.g. a, C-b, M-c C-M-d)"
"Key to be unbound (e.g. \"a\", \"C-b\", \"M-c\", \"C-M-d\")"
return (removeKeyBinding m k)


Expand Down

0 comments on commit 6edc264

Please sign in to comment.