Marco Benini

Italian keyboards and Emacs

When typing on an Italian keyboard, composing LaTeX documents, it is always a pain since a couple of fundamental characters are lacking: tilde and backtick.

There are useless characters like §, ° and £:the first denotes paragraphs ends and it has not been used since the 18th century; the second denotes degrees and is used sometimes, but not frequently; the third denotes lira, the former Italian currency, but we joined euro, so it became outdated.

So, why not to get rid of these characters, replacing them with something useful?

In Emacs, here is the code to append to your .emacs file:

(global-set-key (kbd "°") (kbd "`"))
(global-set-key (kbd "§") (kbd "~"))

I tested it on Linux and Windows.

Advertisements

One comment on “Italian keyboards and Emacs

  1. Federico Gobbo
    April 6, 2011

    This workaround hangs perfectly in Aquamacs fo Mac OS X.

    You have to create your .emacs file in your home folder (~/Users/name-of-your-user). If you want to set it globally for every user of your mac, add the lines above here:

    ~/Library/Preferences/Aquamacs Emacs/Preferences.el

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Information

This entry was posted on April 5, 2011 by in Emacs, LaTeX & TeX.
%d bloggers like this: