英文:
Use Flyspell-prog-mode with go-autocomplete
问题
在emacs中使用flyspell-prog-mode会导致go-automplete出现问题。有没有办法让这两个模式能够很好地协同工作?
我已经研究过使用另一个拼写检查器,但没有找到一个具有与flyspell相同功能的拼写检查器(即只检查注释和字符串,并且实时进行检查)。非常感谢任何提示。谢谢!
英文:
Using flyspell-prog-mode in emacs causes go-automplete to choke. Is there anyway I can make these two modes play nicely together?
I have researched using another spell checker but did not find one that has same capabilities as flyspell (i.e only check comments and strings, and do it on the fly). Any tips most appreciated, thanks
答案1
得分: 0
这是关于auto-complete
的一般问题。只需在设置完auto-complete
后执行以下操作:
(ac-flyspell-workaround)
英文:
This is a general issue with auto-complete
. Just do
(ac-flyspell-workaround)
after setting up auto-complete
.
答案2
得分: 0
jpkotta是正确的。完整的参考解决方案如下:
(在加载'go-mode之后
(需要'go-autocomplete)
(ac-flyspell-workaround))
英文:
jpkotta was correct. Complete solution for reference was:
(with-eval-after-load 'go-mode
(require 'go-autocomplete)
(ac-flyspell-workaround))
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论