使用Flyspell-prog-mode与go-autocomplete

huangapple go评论75阅读模式
英文:

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))

huangapple
  • 本文由 发表于 2016年2月17日 12:07:13
  • 转载请务必保留本文链接:https://go.coder-hub.com/35447757.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定