Other GNU Emacs tips
GNU Emacs is the greatest piece of software ever written. If you're unfamiliar with GNU Emacs, learn it, it is the greatest piece of software ever written, it can achieve incredible things for you. Search...
If all you want to do is use GNU Emacs for entering CJK text, to copy/paste into other applications, here is a basic primer on using GNU Emacs for this purpose.
Explanation of GNU Emacs notation:
GNU Emacs info texts generally use the following notation standards: for Control key combinations use C- shorthand, i.e. this
means you press `Ctrl' and `x', i.e. hold the control key and press `x'. This
means you hold the control key and press `x', followed by holding the control key and pressing `c'. This
means you hold the control key and press `x', followed by letting go of the control key and pressing only `s'. This
means you hold the control key and press `x', followed by letting go of the control key and pressing capital `S', i.e. holding the Shift key and pressing `s'.
For the Meta key (sometimes refered to as the Alt key) use M- shorthand, i.e. this
means you hold the Meta key and press `x'.
`RET' means hitting the Enter key, `TAB' means hitting the Tab key.
If your keyboard doesn't have the Meta key, you can hit `Escape' and release it, instead of using Meta, i.e. to enter
press `Escape', release it, and then press `x'.
End of GNU Emacs notation explanation
Before first using GNU Emacs, to make sure that GNU Emacs clipboard is integrated with the system clipboard (IMPORTANT), make sure you have an .emacs file in your home directory with the following text:
(set-clipboard-coding-system 'utf-8)
(setq x-select-enable-clipboard t)
$ echo "(set-clipboard-coding-system 'utf-8)" >> ~/.emacs
$ echo "(setq x-select-enable-clipboard t)" >> ~/.emacs |
You can also start GNU Emacs and edit this file in it:
- Run GNU Emacs.
- Create the file:
- Type the text in it.
- Save the file:
- Exit GNU Emacs:
- Restart GNU Emacs.
To enter CJK text:
- Start GNU Emacs:
- In GNU Emacs, once started, switch to the *
scratch* buffer:
select *
scratch*, i.e. type *sc and hit `TAB'.
- Switch to the input method of your choice, e.g. for Japanese:
will give you a list of available Japanese input methods, select one by finishing typing its name and hitting RET.
For Chinese:
C-x RET C-\
chinese TAB TAB |
For Korean:
C-x RET C-\
korean TAB TAB |
- Type the text.
- Cut the text:
will move you to the beginning of the line. If you've typed more lines, move to the first one, by repeatedly hitting:
Cut the text in one line to place it on the clipboard with:
To cut more lines and place them on the clipboard, hit C-k repeatedly, two times for each line, first C-k cuts the line, the second one cuts the linebreak.
- The CJK text is in the clipboard now. Switch to the application where you want to enter the CJK text and paste it there.
To exit GNU Emacs when you're finished:
Video screencast of CJK input in GNU Emacs on the Nokia N900.