spacemacs/layers/+emacs/typography
syl20bnr ebe4c60264 Revert "Defer packages by default using use-package-always-defer"
This reverts commit 29c78ce841 and all other fixes
that have been made afterwards.

The motivation is that use-package is seen by many as a replacement for
`require`. Is use-package always defer the loading of packages then is breaks
this use case, this does not respect POLA so even if it was making Spacemacs
loading faster (up to 3s faster on some startup on my machine) we just cannot
use it, it would be irresponsible. Spacemacs should be easy to use, loading
performance will come with time but it is not a priority.
2018-03-03 23:40:10 -05:00
..
config.el Happy New Year 2018! 2018-01-04 02:00:25 -05:00
packages.el Revert "Defer packages by default using use-package-always-defer" 2018-03-03 23:40:10 -05:00
README.org

Typography layer

Description

This layer provides support for typographic text editing in Spacemacs.

Features:

  • 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 (Only available on Emacs 25).

Install

To use this configuration layer, add it to your ~/.spacemacs. You will need to add typography to the existing dotspacemacs-configuration-layers list in this file.

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 Toggle Typo Mode (automatic insertion of typographic characters)
SPC t ~ Toggle Tildify Mode (automatic insertion of non-breaking spaces)
SPC x ~ Insert non-breaking spaces in the current region

The following keybindings are available in insert state.

Typo Mode

Key Bindings 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 Description
SPC Insert non-breaking space when required