不谈Spacemacs,只谈Centaur Emacs

求教想修改默认状态栏显示,在custom.el下修改doom-modeline几个变量的值都不起作用,比如’(doom-modeline-icon nil)就没用,如何破?

  1. 首先,是(setq doom-modeline-icon nil)
  2. 检查下当前环境doom-modeline-icon是否正确。
  3. C-<f6> i 看看是否有变化
  1. 我是放在custom-set-variables之下的, (custom-set-variables '(doom-modeline-env-version nil) '(doom-modeline-icon nil) ) 这样,更奇怪的是doom-modeline-env-version有用,doom-modeline-icon没用。

2,3: 当前环境正确,C - < f6 >开关完全正常。

多谢

直接用 (setq doom-modeline-icon nil)

如何把中间的lsp-mode错误提示去掉,貌似这个东西很卡,很卡,很卡,上下移动光标卡顿,没有procell配置的丝滑

Hope this will be helpful: A guide on disabling/enabling lsp-mode features - LSP Mode - LSP support for Emacs

(global-flycheck-mode -1)
(flycheck-posframe-mode -1)

谢谢两位大佬 , 不得不说这个ui做的很不错,功能用很强大,足足够用, 不过还是回到了purcell的配置, 用的之前自己改过的,加了lsptabnine配个gccemacs lsp提示很跟手

ui样式修改的不多,但是不卡,很顺滑 , 性能上面差别太大 , 不知道其他人有没有这样子的问题, macos 2019 16寸 使用的emacs-plus28 gccemacs , 感觉有时候也不是lsp导致卡的主要问题 , mode开的太多了本来就很消耗性能, 使用profile查看了光标移动卡的问题并没有找到,cpu 占用1%,很纳闷,一个移动光标的函数会占用1%的cpu, dashboard界面很酷

我平时工作会用2015 13寸和2019 15寸 MBP,gccemacs和Mac-port都没有遇到这个问题,挺流畅。可能跟你使用的特定mode或者UI有关,这个需要排查。可以尝试关闭一些UI元素或者mode确认。

同2019 MacBook 16, 28.05。我禁用了以下mode

(add-hook 'prog-mode-hook (lambda()(display-line-numbers-mode -1)) ) (add-hook 'prog-mode-hook (lambda()(flyspell-mode -1)) ) (add-hook 'prog-mode-hook (lambda()(global-diff-hl-mode -1)) ) (add-hook 'prog-mode-hook (lambda()(diff-hl-flydiff-mode -1)) ) 外加上禁用lsp-ui-doc-enable,以及highlight-indent-guides-responsive, 光标移动才不算卡。

您好,windows10下通过ALT+X menu-set-font设置字体,重启后又恢复了。。

设置好以后,应该还需要执行一次 M-x,menu-bar-options-save 才会保存你的修改到本地。

1 个赞

搞定,感谢。windows10下在load-theme耗时比较多,你的有这问题吗?

你可以做下profiling:https://gnu.huihoo.org/emacs/24.4/emacs-lisp/Profiling.html

我不是用 Centaur的,不过Emacs 在Windows10 加载东西就是慢的,习惯就好了 :smile:

这是Emacs Windows版本本身的问题,天生如此,没办法啊

我现在已经迁移到之前purcell的配置了, 抄了一点centaur 的配置 , 不过等不忙了在折腾,看看如何, 毕竟还算合适我的键位要求 , UI也很漂亮. 谢谢你的不错的回复

您和陈斌的配置,我都在windows 10用过,用他的配置管理是启动、使用明显的能感受到比你的稍微快一点,也可能是我本地的问题。在win下终端中用emacs.exe --debug-init启动,只有 “libpng warning: iCCP: cHRM chunk does not match sRGB”. Message:

Loading paren...done
Loading c:/app/emacs/.emacs.d/custom.el (source)...done
Set package archives to ‘ustc’
Unable to activate package ‘csharp-mode’.
Required package ‘tree-sitter-0.12.1’ is unavailable
Loaded theme ‘doom-one’
Loading c:/app/emacs/.emacs.d/persp-confs/persp-frame...done
PNG warning: iCCP: extra compressed data
Loading c:/app/emacs/.emacs.d/recentf...done
Cleaning up the recentf list...done (0 removed)
[yas] Prepared just-in-time loading of snippets successfully.
Package dash-functional is obsolete; use dash 2.18.0 instead
ad-handle-definition: ‘easy-mark’ got redefined
For information about GNU Emacs and the GNU system, type C-h C-a.
Package cl is deprecated
Updating buffer list...
Formats have changed, recompiling...done
Updating buffer list...done
ibuffer-projectile: groups set
Commands: m, u, t, RET, g, k, S, D, Q; q to quit; h for help
Updating buffer list...done
ibuffer-projectile: groups set
Commands: m, u, t, RET, g, k, S, D, Q; q to quit; h for help
Updating buffer list...done
ibuffer-projectile: groups set
Commands: m, u, t, RET, g, k, S, D, Q; q to quit; h for help
Updating buffer list...done
ibuffer-projectile: groups set
Commands: m, u, t, RET, g, k, S, D, Q; q to quit; h for help
Beginning of buffer [4 times]
Quit
1 个赞

这很正常,功能和第三方包的数量都不一样。尤其是UI方面,精简掉也很快的。Windows 版本慢是天生的,底层机制有关。对比是同一配置下,不同操作平台,比如Linux和macOS。

1 个赞

嗯,wsl2下是用纯cmd,速度还是挺好的。windows下明显卡在加载custom.el文件上,回头研究研究。。