[unicode] easier insertion of em dash and Rupee sign

This commit is contained in:
contrapunctus 2021-02-17 19:54:49 +05:30
parent 4e8150ac87
commit 487c829e89
2 changed files with 19 additions and 6 deletions

View File

@ -858,10 +858,12 @@ and eval it."
(:map help-mode-map
("b" . help-go-back)
("f" . help-go-forward)))
(global-unset-key (kbd "M-["))
;; (global-unset-key (kbd "M-'"))
(general-def
"C-' r" (kbd "")
"C-' C-r" (kbd "")
:prefix "M-'"
"r -" [?₹]
"- r" [?₹]
"- -" [?—]
"C-' e" (kbd "")
"C-' b" (kbd "")
"C-' f" (kbd "")

View File

@ -1155,10 +1155,12 @@ This is basically here because Boon hijacks the x key.
#+END_SRC
** Unicode keys
#+BEGIN_SRC emacs-lisp
(global-unset-key (kbd "M-["))
;; (global-unset-key (kbd "M-'"))
(general-def
"C-' r" (kbd "₹")
"C-' C-r" (kbd "₹")
:prefix "M-'"
"r -" [?₹]
"- r" [?₹]
"- -" [?—]
"C-' e" (kbd "€")
"C-' b" (kbd "←")
"C-' f" (kbd "→")
@ -1168,6 +1170,15 @@ This is basically here because Boon hijacks the x key.
"C-' F" (kbd "ƒ"))
(setq default-input-method "devanagari-itrans")
#+END_SRC
Suggestion by lampilelo for extending =iso-transl-ctl-x-8-map= (https://dpaste.com/BAQUXSDVL.txt)
#+BEGIN_SRC emacs-lisp :tangle no
(eval-after-load 'iso-transl
'(let ((map (make-sparse-keymap)))
(define-key map (kbd "c") [?č])
(define-key map (kbd "C") [?Č])
(define-key iso-transl-ctl-x-8-map (kbd "v") map)))
#+END_SRC
** backup configuration
#+BEGIN_SRC emacs-lisp
(setq backup-by-copying t