diff --git a/init.el b/init.el index 1e593ff..a258988 100644 --- a/init.el +++ b/init.el @@ -165,6 +165,33 @@ (global-set-key (kbd "") 'eval-buffer) (global-set-key (kbd "M-") 'ielm) + +;;;; More convenient Unicode keys +;; make a macro, global-set-keys - +;; (global-set-keys (keybinding-pair1) (keybinding-pair2) ...) +;; => +;; (global-set-key keybinding-pair1) +;; (global-set-key keybinding-pair2) +;; ... +;; where each (keybinding-pair) is +;; ((kbd ...) function) + +(global-unset-key (kbd "M-,")) +(global-set-key (kbd "M-, a") + (lambda () (interactive) (insert "ä"))) +(global-set-key (kbd "M-, A") + (lambda () (interactive) (insert "Ä"))) +(global-set-key (kbd "M-, u") + (lambda () (interactive) (insert "ü"))) +(global-set-key (kbd "M-, U") + (lambda () (interactive) (insert "Ü"))) +(global-set-key (kbd "M-, o") + (lambda () (interactive) (insert "ö"))) +(global-set-key (kbd "M-, O") + (lambda () (interactive) (insert "Ö"))) +(global-set-key (kbd "M-, s") + (lambda () (interactive) (insert "ß"))) + ;;;; Just hit y or n to answer yes or no prompts! Shiny! (defalias 'yes-or-no-p 'y-or-n-p)