本文介绍了如何在Emacs中为LaTeX模式定义两个ispell词典?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个第二语言的许多报价的文件。我如何将此第二语言定义为Ispell?我有文件顶部: %%本地IspellDict:brasileiro
我尝试过这个,但没有起作用:
%% Local IspellDict:brasileiro,english
解决方案
一种在两种语言之间切换的方法:
;;你应该安装aspell-ru和aspell-en包
(let((langs'(englishrussian))
(setq lang-ring(make-ring(length langs)) )
(dolist(elem langs)(ring-insert lang-ring elem)))
(defun cycle-ispell-languages()
(interactive)
(let lang(ring-ref lang-ring -1)))
(ring-insert lang-ring lang)
(ispell-change-dictionary lang)))
-set-key(kbdC-1)'cycle-ispell-languages)
I have a document with many quotations in a second language. How can I define this second language to Ispell? I have this in file top:
%% Local IspellDict: brasileiro
I tried this, but it didn't work:
%% Local IspellDict: brasileiro, english
解决方案
I have a way to toggle between two languages:
;; You should have aspell-ru and aspell-en packages installed
(let ((langs '("english" "russian")))
(setq lang-ring (make-ring (length langs)))
(dolist (elem langs) (ring-insert lang-ring elem)))
(defun cycle-ispell-languages ()
(interactive)
(let ((lang (ring-ref lang-ring -1)))
(ring-insert lang-ring lang)
(ispell-change-dictionary lang)))
(global-set-key (kbd "C-1") 'cycle-ispell-languages)
这篇关于如何在Emacs中为LaTeX模式定义两个ispell词典?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!