spacemacs/contrib/better-defaults
Tu Do fe5c6ec1bc Auto-indent when pasting
This is a nice feature taken from Prelude. This commit advises yank and
yank-pop and evil-paste-after to indent after pasting, unless a prefix
arugment is specified or the major mode is one of
spacemacs-indent-sensitive-modes.

Conflicts:
	contrib/better-defaults/README.md
2015-05-10 21:51:24 -04:00
..
img
funcs.el Uncomment spacemacs/indent-region-or-buffer and move it 2015-03-26 12:26:09 -04:00
keybindings.el Replace C-o with M-o in Dired buffer 2015-05-10 01:09:51 -04:00
README.md Auto-indent when pasting 2015-05-10 21:51:24 -04:00

Better Defaults contribution layer for Spacemacs

logo

Table of Contents

Description

This layer enhances the default commands of Emacs and is primarily intended to be used with the emacs editing style as it does not change anything in the Vim key bindings.

However the emacs editing style is not required, you can still use this layer while you are using the vim editing style if you have some kind of mixed style.

The commands defined in this layer are taken from various sources like Prelude.

Install

To use this contribution add it to your ~/.spacemacs

(setq-default dotspacemacs-configuration-layers '(better-defaults))

Functions

smart-move-beginning-of-line

Pressed one time, go to the first non-whitespace character of the line, pressed again, go to the beginning of the line.

Key bindings

Key Binding Description
C-a smart beginning of line
C-o get into Vim normal mode to execute one command, then go back Emacs editing mode
M-o (Dired) Open file in other window without moving point. It is the replacement for C-o in Dired.
C-y Automatically indenting after pasting. With prefix argument, paste text as it is