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 /lisp/emacs-lisp | |
parent | f9775f21fcddd3d3715cb3249090d99322488a45 (diff) | |
download | emacs-571441fc790fadfdc48a6287328828495719e990.tar.gz emacs-571441fc790fadfdc48a6287328828495719e990.tar.bz2 emacs-571441fc790fadfdc48a6287328828495719e990.zip |
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 'lisp/emacs-lisp')
0 files changed, 0 insertions, 0 deletions