[ | Date | | | 2008-12-10 19:42 -0500 | ] |
[ | Mod. | | | 2009-01-20 01:40 -0500 | ] |
Recently, I enriched my .screenrc
with a few key bindings that make it a lot easier to follow the rules for proper French typography:
## redefining Ctrl-space would shadow Emacs' binding; that would be bad.
# bindkey ^ digraph ' '
bindkey ^ ^ digraph ' '
bindkey «» eval "digraph '<<'" "digraph ' '" "digraph ' '" \
"digraph '>>'" "stuff '^[OD'" "stuff '^[OD'"
bindkey ?? eval "digraph ' '" "stuff '?'"
bindkey !! eval "digraph ' '" "stuff '!'"
bindkey :: eval "digraph ' '" "stuff ':'"
bindkey ;; eval "digraph ' '" "stuff ';'"
bindkey HH eval "digraph ' '" "stuff 'h'" "digraph ' '"
(Where ^[
is the actual escape character, and the line split on a backslash is actually a single line.)
With these rules:
C-space C-space
produces a non-breaking space;HH
produces the letter h surrounded by non-breaking spaces, which is useful to typeset times;The only annoying part is that being able to type !!
and ::
can be useful in some programming languages: one must type these combinations slowly to have them displayed literally.
Quick links: