How to enter Greek characters in Emacs

后端 未结 10 1350
说谎
说谎 2021-01-30 11:20

This page indicates that Greek letters can be inserted into Emacs by using M-i. However, Emacs 23.2.1 in a Debian Squeeze variant inserts the \"tab\" character when

10条回答
  •  面向向阳花
    2021-01-30 11:37

    Expanding the answer by @Oleg Pavliv:

    To solve this problem once and for all in your .emacs file, you need to choose a key pattern (like M-g + ) and a memorizable correspondence table - . I suggest not to invent anything new, but to use the correspondences from the PostScript Symbol encoding. This leads me to the following:

    (global-set-key (kbd "M-g a") "α")
    (global-set-key (kbd "M-g b") "β")
    (global-set-key (kbd "M-g g") "γ")
    (global-set-key (kbd "M-g d") "δ")
    (global-set-key (kbd "M-g e") "ε")
    (global-set-key (kbd "M-g z") "ζ")
    (global-set-key (kbd "M-g h") "η")
    (global-set-key (kbd "M-g q") "θ")
    (global-set-key (kbd "M-g i") "ι")
    (global-set-key (kbd "M-g k") "κ")
    (global-set-key (kbd "M-g l") "λ")
    (global-set-key (kbd "M-g m") "μ")
    (global-set-key (kbd "M-g n") "ν")
    (global-set-key (kbd "M-g x") "ξ")
    (global-set-key (kbd "M-g o") "ο")
    (global-set-key (kbd "M-g p") "π")
    (global-set-key (kbd "M-g r") "ρ")
    (global-set-key (kbd "M-g s") "σ")
    (global-set-key (kbd "M-g t") "τ")
    (global-set-key (kbd "M-g u") "υ")
    (global-set-key (kbd "M-g f") "ϕ")
    (global-set-key (kbd "M-g j") "φ")
    (global-set-key (kbd "M-g c") "χ")
    (global-set-key (kbd "M-g y") "ψ")
    (global-set-key (kbd "M-g w") "ω")
    (global-set-key (kbd "M-g A") "Α")
    (global-set-key (kbd "M-g B") "Β")
    (global-set-key (kbd "M-g G") "Γ")
    (global-set-key (kbd "M-g D") "Δ")
    (global-set-key (kbd "M-g E") "Ε")
    (global-set-key (kbd "M-g Z") "Ζ")
    (global-set-key (kbd "M-g H") "Η")
    (global-set-key (kbd "M-g Q") "Θ")
    (global-set-key (kbd "M-g I") "Ι")
    (global-set-key (kbd "M-g K") "Κ")
    (global-set-key (kbd "M-g L") "Λ")
    (global-set-key (kbd "M-g M") "Μ")
    (global-set-key (kbd "M-g N") "Ν")
    (global-set-key (kbd "M-g X") "Ξ")
    (global-set-key (kbd "M-g O") "Ο")
    (global-set-key (kbd "M-g P") "Π")
    (global-set-key (kbd "M-g R") "Ρ")
    (global-set-key (kbd "M-g S") "Σ")
    (global-set-key (kbd "M-g T") "Τ")
    (global-set-key (kbd "M-g U") "Υ")
    (global-set-key (kbd "M-g F") "Φ")
    (global-set-key (kbd "M-g J") "Φ")
    (global-set-key (kbd "M-g C") "Χ")
    (global-set-key (kbd "M-g Y") "Ψ")
    (global-set-key (kbd "M-g W") "Ω")
    

提交回复
热议问题