If for some reason I am stuck to a keyboard with English layout and I often have to enter text in German - can emacs translate ae
to ä
(or ue
to ü
) for me?
I do have a not-working solution like this:
(setq abbrev-file-name "~/.emacs.d/abbrev_defs"
save-abbrevs t) ;; save abbrevs when file is saved and emacs quits
(if (file-exists-p abbrev-file-name)
(quietly-read-abbrev-file))
(add-hook 'post-self-insert-hook 'expand-abbrev)
where in my abbrev_defs
I have
(define-abbrev-table 'global-abbrev-table
'(
("ue" "ü" nil 0)
("ae" "ä" nil 0)
("sz" "ß" nil 0)))
However this only works at the beginning of a word.
Is there a solution for this available?