help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Inputting characters with specialist diacritic marks in emacs


From: Joost Kremers
Subject: Re: Inputting characters with specialist diacritic marks in emacs
Date: 22 Jan 2016 01:27:18 GMT
User-agent: slrn/1.0.1 (Linux)

B. T. Raven wrote:
> P.S.  When will Emacs support a ring or stack of input method 
> invocations by the C-\ keychord?

Not really a ring or stack, and not stock Emacs, as it requires the
hydra package, but the following works nicely:

```
(defhydra jk-hydra-input-method (:exit t :hint nil :idle 1)
  "
Current input method: %s(or current-input-method \"none\")

_l_: latin-9-prefix    _t_: TeX           _s_: set input method
_i_: IPA               _x_: X-SAMPA
"
  ("s" set-input-method)
  ("i" (set-input-method "ipa"))
  ("x" (set-input-method "ipa-x-sampa"))
  ("t" (set-input-method "TeX"))
  ("l" (set-input-method "latin-9-prefix"))
  ("C-\\" (toggle-input-method)))
(bind-key "C-\\" #'jk-hydra-input-method/body)
```



-- 
Joost Kremers                                   address@hidden
Selbst in die Unterwelt dringt durch Spalten Licht
EN:SiS(9)


reply via email to

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