Emacs: Replace Greek Letter Names to Unicode 🚀

By Xah Lee. Date: . Last updated: .
emacs greek to symbol 2021-10-28
emacs greek to symbol 2021-10-28

Here's a command to convert Greek to unicode symbols.

put this in your Emacs Init File:

(require 'xah-replace-pairs)

(defun xah-replace-greek-letter-name-to-symbol (Begin End)
  "Replace alpha to α, beta to β etc in current line or selection.

URL `http://xahlee.info/emacs/emacs/elisp_replace_greeks_to_symbols.html'
Version: 2016-10-05 2023-05-13"
   (if (use-region-p)
       (list (region-beginning) (region-end))
     (list (line-beginning-position) (line-end-position))))
  (let ((case-fold-search nil))
       ["Alpha" "Α"] ["Beta" "Β"] ["Gamma" "Γ"] ["Delta" "Δ"]
       ["Epsilon" "Ε"] ["Zeta" "Ζ"] ["Eta" "Η"] ["Theta" "Θ"]
       ["Iota" "Ι"] ["Kappa" "Κ"] ["Lambda" "Λ"] ["Mu" "Μ"]
       ["Nu" "Ν"] ["Xi" "Ξ"] ["Omicron" "Ο"] ["Pi" "Π"]
       ["Rho" "Ρ"] ["Sigma" "Σ"] ["Tau" "Τ"] ["Upsilon" "Υ"]
       ["Phi" "Φ"] ["Chi" "Χ"] ["Psi" "Ψ"] ["Omega" "Ω"]

       ["alpha" "α"] ["beta" "β"] ["gamma" "γ"] ["delta" "δ"]
       ["epsilon" "ε"] ["zeta" "ζ"] ["eta" "η"] ["theta" "θ"] ["iota" "ι"] ["kappa" "κ"]
       ["lambda" "λ"] ["mu" "μ"] ["nu" "ν"] ["xi" "ξ"] ["omicron" "ο"]
       ["pi" "π"] ["rho" "ρ"] ["sigmaf" "ς"] ["sigma" "σ"]
       ["tau" "τ"] ["upsilon" "υ"] ["phi" "φ"] ["chi" "χ"]
       ["psi" "ψ"] ["omega" "ω"] ["thetasym" "ϑ"]
       ["upsih" "ϒ"] ["piv" "ϖ"]) "REPORT" "HILIGHT")))

requires package Emacs: xah-replace-pairs.el 📦

You need the elisp library Emacs: xah-replace-pairs.el 📦.