不谈Spacemacs,只谈Centaur Emacs

想了个方案解决了,升级最新版试试

那可能是我的表达有问题,不是想问怎么改doc border,是doc里面的文本的背景色和整个doc的背景色不一致,感觉看起来不太美观,主题是doom-gruvbox dark

看看lsp-ui-doc-frame-parameters,可自行修改。

我这里还是不行,可能是本地其它设置有问题,我再看看。谢谢啦!

可能跟markdown的渲染有关,需要看看markdown的配置

好的,我用别的电脑Pull了最新分支就好了,估计确实是本地其它环境问题。

升级,出现如下错误,怎么解决?@ seagle0128 谢谢大佬 ~

Error (use-package): Failed to parse package org: use-package: :pretty-hydra wants a heads-plist and optionally a name and/or body in front Warning (initialization): An error occurred while loading ‘/Users/ethanlin/.emacs.d/init.el’:

Invalid read syntax: )

To ensure normal operation, you should investigate and remove the cause of the error in your initialization file. Start Emacs with the ‘–debug-init’ option to view a complete error backtrace.

再升级看看,用emacs --debug-init启动,看看有没有backtrace。

这个错误看起来是pretty-hydra包没有安装成功。

谢谢,@seagle0128 又升级一下 ~ 还是出现这个error。重新安装了 pretty-hydra。用emacs --debug-init捕捉到如下信息:

你检查下本地是否修改过init-org.el,我这里没有这个问题哦

谢谢, @seagle0128 用了挺长时间了,都不记得改哪了。 我重新安装了一下,出现如下情况:

  1. custom-initialize-reset: Symbol’s function definition is void: org-back-to-heading-or-point-min
  2. doom-line-mode 不自动启动

有什么建议吗?谢谢

把org从9.3 升级到 9.4 就好了 :slight_smile:

你好,

请问你们用这个配置时emacs会出现卡死的情况吗,

我的会终常卡死,emacs版本是28.0.50,系统ubuntu18.04,

卡死终端信息如图:

你这个不是卡死,是段错误。emacs内部发生错误了,跟配置没关系。配置只是触发了问题而已。

了解了,非常感谢您的回答

您好,你这边有统一设置所有字体的选项吗,最近新启用的窗口字体也是需要单独设置下:

参考:custom.el

(when sys/macp
    (with-eval-after-load 'doom-modeline
      (set-face-attribute 'mode-line nil :font "Menlo-12")
      (set-face-attribute 'mode-line-inactive nil :font "Menlo-12"))

    (with-eval-after-load 'lsp-ui-doc
      (add-to-list 'lsp-ui-doc-frame-parameters '(font . "Menlo-12")))

    (with-eval-after-load 'company-box
      (add-to-list 'company-box-frame-parameters '(font . "Menlo-12")))

    (with-eval-after-load 'company-box-doc
      (add-to-list 'company-box-doc-frame-parameters '(font . "Menlo-12"))))
1 个赞

补充说明一下,最新的配置将 centaur-completion-style 默认值改为了 childframe,不喜欢可以改回minibuffer。如果emacs版本不支持childframe 会自动使用minibuffer。另外,对于 childframe 做了优化,四周增加了一些空白,速度也做了一定优化,在 gccmeacs 28下接近vscode的体验。

1 个赞

使用web-mode 写tsx的时候编写html标签内容有卡顿

如下是profiler信息

    194,524,935  48% + company-post-command
    169,710,417  42% - timer-event-handler
    169,663,554  42%  - apply
    168,976,420  41%   - company-idle-begin
    168,975,620  41%    - company-auto-begin
    168,975,620  41%     - company--perform
    168,966,236  41%      - company--begin-new
     68,988,800  17%       - company-calculate-candidates
     68,983,792  17%        - company--fetch-candidates
     68,981,680  17%         + company-call-backend-raw
          2,112   0%         + company-require-match-p
          4,144   0%        - company--postprocess-candidates
          4,144   0%         + company--transform-candidates
            864   0%        + run-with-timer
     63,099,421  15%       - company-call-frontends
     63,099,421  15%        - company-box-frontend
     63,095,357  15%         - company-box-show
     62,182,597  15%          - company-box--display
     62,182,597  15%           - apply
     62,182,597  15%            - my-company-box--display
     62,176,501  15%             - let
     22,697,545   5%              - company-box--update-scrollbar
     11,803,578   2%                 delete-window
     10,892,951   2%               + display-buffer-in-side-window
      1,999,399   0%              + company-box--compute-frame-position
        356,407   0%              + company-box--move-selection
         96,584   0%          + company-box--with-icons-p
     36,845,911   9%       + company-call-backend
         32,104   0%       + company--multi-backend-adapter
          9,384   0%      + company-call-frontends
            800   0%    + company-post-command
        230,878   0%   + lsp--on-idle
        152,728   0%   + #<compiled 0x1b87dba95e7444d6>
         91,680   0%   + symbol-overlay-idle-timer
         72,772   0%   + #<compiled -0x4a3a56ad0265083>
         62,296   0%     posframe-hidehandler-daemon-function
         43,920   0%   + #<subr F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_12>
         18,384   0%   + #<compiled -0x1cf38a71bf9a37ad>
         10,288   0%   + auto-revert-buffers
          1,056   0%     #<subr F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_10>
          1,056   0%   + #<compiled 0x117a1a4ee1ef2f2f>
            816   0%   + blink-cursor-start
            168   0%   + #<compiled 0x1f402b91ceae>
         38,016   0%  + timer-activate-when-idle
          3,280   0%    timer-inc-time
          2,064   0%  + timer-activate
     28,980,162   7% - command-execute
     28,980,162   7%  - apply
     28,980,162   7%   - ad-Advice-command-execute
     28,969,762   7%    - #<subr command-execute>
     28,969,762   7%     - funcall-interactively
     16,733,442   4%      + self-insert-command
      9,332,792   2%      + counsel-M-x
      1,438,500   0%      + newline
        647,414   0%      + delete-backward-char
        533,614   0%      + yas-expand
        196,408   0%      + electric-newline-and-maybe-indent
         64,200   0%      + kill-line
         11,936   0%      + next-line
          2,112   0%        ns-put-working-text
      5,424,662   1% + #<compiled -0x13c622feaccd2b34>
      2,256,443   0% + web-mode-on-post-command
      2,018,265   0% + redisplay_internal (C function)
        246,744   0% + lsp-ui-doc--make-request
        124,352   0% + symbol-overlay-post-command
         45,664   0% + winner-save-old-configurations
         30,328   0% + gcmh-register-idle-gc
         27,376   0% + lsp-ui-sideline
         24,288   0% + lsp--post-command
         18,463   0% + yas--post-command-handler
          7,552   0%   flycheck-maybe-display-error-at-point-soon
          5,200   0% + #<compiled -0x176c81afd06ba1ca>
          4,144   0% + lsp--on-auto-save
          3,168   0% + jit-lock--antiblink-post-command
          1,056   0% + eldoc-schedule-timer
             84   0% + eldoc-pre-command-refresh-echo-area
              0   0%   ...

发现company-auto-begin有点卡顿 这个是否合理?

禁用了company-box 在写入的时候没有那么卡顿了, 但是我依然吧company-begin-commands删除到了只有第一个 明显输入快了一点点, 但是依然会有那种卡顿的感觉,但是不是还明显,