How to send NON-ENGLISH MAIL from EMACS
Sending foreign-language email can be done using emacs-20. It
involves three setup steps. (Additionally, it is easiest if you
send mail entirely from within emacs, using M-x mh-rmail to read
mail, and M-x mh-smail to send mail.)
1) Make sure emacs can display your language's fonts.
By default, emacs should be able to display the fonts. (An easy
test to see if emacs can display non-latin fonts is to type C-h h
-- emacs will try to show you "hello" in many languages,
using the fonts of those languages.)
If you are unable to display the non-latin fonts, you may need to
place a line in your ~/.Xresources file:
Emacs.Font: -misc-fixed-medium-r-normal-*-*-120-75-75-*-*-*-*
2) Configure emacs to allow you to type text in your language.
For languages whose characters are not found on English
keyboards, it is often possible to type them by configuring
emacs to use an alternate input method. A properly
configured emacs will allow semi-phonetic input of Chinese or
Japanese, for example.
The keyboard command C-\ instructs emacs to switch to an
alternate input method. When emacs prompts you to enter what
input method you want, you can type TAB to get it to give you
a list of input methods which match what you've typed so far.
Once you choose an alternate input method, you can switch
between it and English whenever you want by typing C-\
IMPORTANT NOTE: It's a good idea to switch back to English
input before trying to save your file or to exit emacs,
because emacs sometimes asks you questions which must be
answered in English.
Before using this "C-\", it may be useful to tell emacs which
language you plan on using most often. Typing C-x C-m l
will prompt you to enter the language environment you want to
use. Again, you can type TAB to see a list of possible
choices. Choose what you want to use, and "C-\" will be
automatically configured to be the customary input method for
that language.
3) Configure emacs to let you send Mime-encoded email.
You need to make use of a package called "tm" to properly
type and send non-ASCII email. To load "tm", your ~/.emacs
file should contain the line:
(load "/afs/sipb/contrib/emacs/packages/tm-install-dir/share/emacs/site-lisp/mime-setup")
If this line is in your ~/.emacs file when you start emacs,
emacs is configured to be able to send Mime-encoded email.
|