spacemacs/layers/typography
Sebastian Wiesner 05fe68ba23 Add typography layer
Provides typo mode for typographic substitutions and tildify mode for
automagic non-breaking space insertion.
2015-11-06 15:21:34 +01:00
..
config.el Add typography layer 2015-11-06 15:21:34 +01:00
packages.el Add typography layer 2015-11-06 15:21:34 +01:00
README.org Add typography layer 2015-11-06 15:21:34 +01:00

#+TITLE typography contribution layer for Spacemacs

Table of Contents

Description

This layer provides support for typographic text editing in Spacemacs. It provides modes to automatically insert and cycle among typographic characters:

  • Typo Mode automatically inserts and cycles among typographic Unicode characters on some keys.
  • Tildify Mode automatically inserts non-breaking spaces where required.

Install

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

  (setq-default dotspacemacs-configuration-layers '(typography))

Typographic editing however is disabled by default. To enable it by default set typography-enable-typographic-editing to t:

  (setq-default dotspacemacs-configuration-layers
                '(typography :variables typography-enable-typographic-editing t))

This setting enables automatic insertion of non-breaking spaces where required and automatic insertion and cycling among of typographic quotes and dashes.

Key bindings

Key Bindings Description
SPC t T y Toggle Typo Mode (automatic insertion of typographic characters)
SPC t T d Toggle Tildify Mode (automatic insertion of non-breaking spaces)
SPC x T t Insert non-breaking spaces in the current region

Typo Mode

Key Bindings (insert mode) Description
" Cycle among quotation marks
` Cycle among left single quotation marks
' Cycle among right single quotation marks
- Cycle among dashes
. Cycle among ellipsis
< Cycle among left angle brackets
> Cycle among right angle brackets

Tildify Mode

Key bindings (insert mode) Description
SPC Insert non-breaking space when required