这个还是我当时报Bug要求他们加上的,text-mode 下启用 ispell 真的很烦人的。
启用 completion-preview-mode 的实用配置。
(use-package completion-preview
:ensure nil
:hook ( (emacs-lisp-mode . completion-preview-mode) (python-mode . completion-preview-mode) (Your-Language-Mode . completion-preview-mode) )
:bind
( :map completion-preview-active-mode-map
("M-n" . completion-preview-next-candidate)
("M-p" . completion-preview-prev-candidate))
:config
(define-key completion-in-region-mode-map (kbd "M-n") 'minibuffer-next-completion)
(define-key completion-in-region-mode-map (kbd "M-p") 'minibuffer-previous-completion)
)
我是在 eshell 下面启用了 completion-preview-mode, 这样很像 fish 的自动补全,同时也不像 company/corfu 那样还有个菜单让你选择。通常在终端下如果出现的补全不是自己想要的,我会选择多输入一点内容,然后再让它猜,跟平常的 in-buffer 补全不太一样
(setq flymake-show-diagnostics-at-end-of-line t)
这个不错,我挺喜欢的。
It’s exciting to see the excellent improvements you’ve made to your Emacs configuration after your update to version 30. I think it is great you could add editorconfig, which-key, and use-package directly in your config as it makes managing packages easier. I’m glad that you updated treesit-language-source-alist to be in sync with current grammars for Go and C++, although it is unfortunate that the default modes do not support these new versions. I think it’s well done how you’re using the tab-bar-tab-name-format-functions
variable for better tab-bar configuration, instead of rewriting the logic. I know that completion-preview-mode is a fun option to play around and see what it can do for you, but as you pointed out the display versus AI completion can make it awkward to use on an every day basis. Since the update, I’ve been experimenting with native-comp for speedier compilation, and also liked the corfu-mode as a good alternative to traditional pop-up completions. Let me know your findings–and I would love to hear more if you discovered any other fun tweaks in the new release!
我们坛子里还有外国友人?
很惊讶啊,估计用Google翻译看的坛子,哈哈
有好几个的
现在网页翻译真的很方便了,我用这个上俄语技术网站也没没太大问题