diff options
author | Michal Nazarewicz <mina86@mina86.com> | 2014-10-15 10:01:26 +0200 |
---|---|---|
committer | Michal Nazarewicz <mina86@mina86.com> | 2015-01-20 13:55:02 +0100 |
commit | 571441fc790fadfdc48a6287328828495719e990 (patch) | |
tree | 42be47520cddbf1f0f96bcab4ddfef4cade0d155 /etc | |
parent | f9775f21fcddd3d3715cb3249090d99322488a45 (diff) | |
download | emacs-571441fc790fadfdc48a6287328828495719e990.tar.gz |
tildify: add `tildify-space' and `tildify-mode'
* lisp/textmodes/tildify.el (tildify-space): A new function
which can be used as a `post-self-insert-hook' to automatically
convert spaces into hard spaces.
(tildify-space-pattern): A new variable specifying pattern where
`tildify-space' should take effect.
(tildify-space-predicates): A new variable specifying list of
predicate functions that all must return non-nil for
`tildify-space' to take effect.
(tildify-space-region-predicate): A new functions meant to be
used as a predicate in `tildify-space-predicates' list.
(tildify-mode): A new minor mode enabling `tildify-space' as a
`post-self-insert-hook'
* tests/automated/tildify-tests.el (tildify-space-test--test):
A new helper function for testing `tildify-space' function.
(tildify-space-test-html, tildify-space-test-html-nbsp)
(tildify-space-test-xml, tildify-space-test-tex): New tests for
`tildify-space' function.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/NEWS | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -494,6 +494,11 @@ As a result of the above, these commands are now obsolete: ** let-alist is a new macro (and a package) that allows one to easily let-bind the values stored in an alist. +** `tildify-mode' allows to automatically insert hard spaces as one +types the text. Breaking line after a single-character words is +forbidden by Czech and Polish typography (and may be discouraged in +other languages), so `auto-tildify-mode' makes it easier to create +a typographically-correct documents. * Incompatible Lisp Changes in Emacs 25.1 |