Skip to content

Commit

Permalink
Disable paste micro-state by default
Browse files Browse the repository at this point in the history
  • Loading branch information
syl20bnr committed May 31, 2015
1 parent 872b26e commit d26b7f2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
4 changes: 2 additions & 2 deletions core/templates/.spacemacs.template
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ before layers configuration."
;; By default the command key is `:' so ex-commands are executed like in Vim
;; with `:' and Emacs commands are executed with `<leader> :'.
dotspacemacs-command-key ":"
;; If non nil the paste micro-state is enabled. While enabled pressing `p`
;; If non nil the paste micro-state is enabled. When enabled pressing `p`
;; several times cycle between the kill ring content.
dotspacemacs-enable-paste-micro-state t
dotspacemacs-enable-paste-micro-state nil
;; Guide-key delay in seconds. The Guide-key is the popup buffer listing
;; the commands bound to the current keystrokes.
dotspacemacs-guide-key-delay 0.4
Expand Down
11 changes: 5 additions & 6 deletions doc/DOCUMENTATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -1856,9 +1856,11 @@ Key Binding | Description

#### Paste Micro-state

Whenever you paste some text a `paste` micro-state is initiated. Pressing
<kbd>p</kbd> again will replace the pasted text with the previous
yanked (copied) text on the kill ring.
The paste micro-state can be enabled by settings the variable
`dotspacemacs-enable-paste-micro-state` to `t`. By default it is disabled.

When the micro-state is enabled, pressing <kbd>p</kbd> again will replace the
pasted text with the previous yanked (copied) text on the kill ring.

For example if you copy `foo` and `bar` then press <kbd>p</kbd> the text `bar`
will be pasted, pressing <kbd>p</kbd> again will replace `bar` with `foo`.
Expand All @@ -1871,9 +1873,6 @@ Key Binding | Description
<kbd>.</kbd> | paste the same text and leave the micro-state
Any other key | leave the micro-state

This micro-state can be disabled by setting
`dotspacemacs-enable-paste-micro-state` to `nil` in `~/.spacemacs`.

#### Auto-indent pasted text

By default any pasted text will be auto-indented. To paste text un-indented
Expand Down

0 comments on commit d26b7f2

Please sign in to comment.