[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Writing source code with Unicode characters

From: Florian Beck
Subject: Re: Writing source code with Unicode characters
Date: Fri, 07 Feb 2014 01:32:02 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0

On 06.02.2014 19:26, Óscar Fuentes wrote:
What can I use to make more convenient the insertion of Unicode chars?
(I'm mostly interested on Greek letters and other math-related symbols

How about abbrev-mode? It's convenient and works on the fly.

Whenever I find something tedious to type, I make an abbreviation (C-x a g) for it.

Then I have this in my .emacs:

  ;; allow § in abbrevs
  (modify-syntax-entry ?§ "w" text-mode-syntax-table)
  (modify-syntax-entry ?§ "w" prog-mode-syntax-table)
  ;; save and load abbrevs
  (add-hook 'kill-emacs-hook 'write-abbrev-file)
  ;; activate
  (add-hook 'org-mode-hook 'abbrev-mode)
  (add-hook 'emacs-lisp-mode-hook 'abbrev-mode)

I never use §, so I can use it here. E.g. §l -> λ.
Abbrev mode also takes care of case, so you get the upper case Λ for free.

Florian Beck

reply via email to

[Prev in Thread] Current Thread [Next in Thread]