Emacs notes - dodatky

Emacs, WinNT & čeština

    Právě jsem instaloval Emacs 21.2.1 a k němu i Leim na podporu neanglických jazykových prostředí. Mám nastaveno jazykové prostředí na "czech". Když však zmáčknu na klávesnici některý z českých znaků, vyprodukuje to v Emacsu serii znaků, např {`e} místo é.

    Funguje:

  1. Nastavit "coding system": C-x <RET> c iso-2022-7bit-unix

  2. Vytvořit soubor(uplatní se na něj právě nastavený coding system): C-x C-f delete.txt

  3. Zapnout "input method" (užívám czech-qwerty, kterou mám jako defaultní a stačí C-\ na zapnutí)

  4. Vesele píšu česky. Pozn: klávesnice (ta windowsovská, co se mění na liště vpravo dole) je americká. Jakmile zapnu českou, stane se to, co je zmíněno výše.

Pokusy:

  1. M-x prefer-coding-system iso-8859-2-dos => nově otevřené soubory budou užívat toto kódování. Teď, když otevřu soubor a zapnu input method, tak čeština funguje.

  2. Default input method je czech-qwerty, stačí ji v bufferu zapnout pomocí C-\

Wokna

Emacs on windows: when copying text into the clipboard, its coding depends upon the current windows keyboard (mine is either EN or CS) and the value used in M-x set-coding-system. For Czech, the combination CS and iso-8859-2-dos works quite well except for the letters "ž" and "ť" (capital as well). Note: though I use EN keyboard for writing, I have to switch to CZ when I want to copy into another win application.

Emacs says (info for MS-DOS, text files): 

If a buffer contains a character belonging to some other ISO 8859 character set, not the one that the chosen DOS codepage supports, Emacs displays it using a sequence of ASCII characters. For example, if the current codepage doesn't have a glyph for the letter `o`' (small `o'with a grave accent), it is displayed as `{`o}'

 See "C-u C-x =" (when the point is at a character) and "M-x codepage-setup"

Dodatky

;; Make the <ENTER> key from the numeric keypad act as `C-j'.
(define-key function-key-map [kp-enter] [?\C-j])

- useful in HTML mode for entering line break


Jakub Holý 2002AD