Use Agda's input method in other emacs mode?

纵饮孤独 提交于 2019-12-09 15:27:29

问题


How do I use Agda's input method to enter unicode characters in non-Agda mode? I don't see its name showing up when I try set-input-method. The reason I want to use Agda's input method instead of TeX is because there are characters I want that can't enter in TeX.

Or, maybe an alternate question would be "How do I add more shortcuts to enter unicode characters in the existing TeX input method?"

Thank you very much


回答1:


Add the following commands in your .emacs file:

;; Using the input method of Agda in LaTeX files.
(require 'agda-input)
(add-hook 'LaTeX-mode-hook
          (lambda () (set-input-method "Agda")))


来源:https://stackoverflow.com/questions/25340687/use-agdas-input-method-in-other-emacs-mode

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!