Skip to content

Instantly share code, notes, and snippets.

@Fuco1
Created April 6, 2013 20:10
Show Gist options
  • Save Fuco1/5327452 to your computer and use it in GitHub Desktop.
Save Fuco1/5327452 to your computer and use it in GitHub Desktop.
key-customize
(defcustom sp-base-key-bindings nil
"A default set of key bindings for commands provided by smartparens.
Paredit binding adds the paredit bindings to the corresponding
smartparens commands. It does not add bindings to any other
commands, or commands that do not have a paredit counterpart.
Smartparens binding adds bindings to most common smartparens
commands. These are somewhat inspired by paredit, but in many
cases differ.
Note that neither \"paredit\" nor \"smartparens\" bindings add a
binding for all the provided commands."
:type '(radio
(const :tag "Don't use any default set of bindings" nil)
(const :tag "Use smartparens set of bindings" 'sp)
(const :tag "Use paredit set of bindings" 'paredit))
:group 'smartparens)
(defcustom sp-override-key-bindings nil
"An alist of commands and bindings that should override the base key set.
If you wish to override a binding from the base set, set the
value for the binding to the `kbd' recognizable string constant.
If you wish to disable a binding from the base set, set the value
for the binding to an empty string.
See `sp-base-key-bindings'."
:type '(alist
:key-type symbol
:value-type string)
:group 'smartparens)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment