This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
spacemacs/layers/better-defaults
Eivind Fonn c3866382b2 Documentation update
- Add #+HTML_HEAD_EXTRA options to all org files
- HTMLize published documentation via CSS
2015-11-13 14:23:13 +01:00
..
img core: dotspacemacs-distribution, spacemacs-core layer and rename contrib 2015-09-07 23:44:43 -04:00
funcs.el spacemacs/backward-kill-word-or-region: handle rectangular selection correctly 2015-10-09 12:07:49 +03:00
keybindings.el better-defaults: Add backward-kill-word-or-region 2015-09-27 21:46:34 -04:00
README.org Documentation update 2015-11-13 14:23:13 +01:00

Better Defaults layer

/TakeV/spacemacs/media/commit/db5901b3bef57e8ea3e649dbcb896f50e00a0363/layers/better-defaults/img/emacs.png

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

spacemacs/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.

spacemacs/backward-kill-word-or-region

A combination of kill-region and backward-kill-word, depending on whether there is an active region. If there's an active region kill that. If not kill the preceding word.

Key bindings

Key Binding Description
C-a smart beginning of line
C-w backward kill word or region
C-y Automatically indenting after pasting. With prefix argument, paste text as it is