【问题标题】:How to exclude a layer in spacemacs?如何在 spacemacs 中排除图层?
【发布时间】:2021-11-02 17:55:58
【问题描述】:

我不想启用Spacemacs中的某些层,并选择不安装它们,例如python层被注释掉:

   dotspacemacs-configuration-layers
   '(
     ;; python
     rust

但是,每次我打开一个 python 文件时,它都会询问我

Support for python-mode requires installation of layer python, do you want to install it? (y or n) n [2 times]

我不得不一直拒绝它,这有点烦人。

有没有办法排除这些层并将此类通知静音?

【问题讨论】:

    标签: emacs spacemacs


    【解决方案1】:

    我也遇到过这个(python层也烦我哈哈)。

    在我的.spacemacs 中更改这些设置让它安静下来:

       dotspacemacs-enable-lazy-installation nil
       dotspacemacs-ask-for-lazy-installation nil
    

    【讨论】:

    • sry,我在 dotspacemacs/user-config 中添加了 ``` (setq dotspacemacs-enable-lazy-installation nil) (setq dotspacemacs-ask-for-lazy-installation nil) ```现在情况更糟了:python 层甚至没有问我就安装好了。
    • 我认为在user-config 中添加这些设置可能是问题所在。它们应该在默认.spacemacs中的dotspacemacs/layers,只需将它们的默认值编辑为nil
    猜你喜欢
    • 2021-09-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-02-06
    相关资源
    最近更新 更多