gpt4 book ai didi

emacs - 如何设置defcustom变量

转载 作者:行者123 更新时间:2023-12-04 06:41:06 25 4
gpt4 key购买 nike

cperl-mode

以及我在源代码中看到的设置:

(defcustom cperl-indent-parens-as-block nil
"*Non-nil means that non-block ()-, {}- and []-groups are indented as blocks,
but for trailing \",\" inside the group, which won't increase indentation.
One should tune up `cperl-close-paren-offset' as well."
:type 'boolean
:group 'cperl-indentation-details)

我试图使用 (custom-set-variable '(cperl-indent-parens-as-block t))但这不起作用,所以我如何将其更改为 t作为全局设置?

最佳答案

该函数名为 ...-variables :

(custom-set-variables '(cperl-indent-parens-as-block t))

或者你可以直接使用 setq ,因为变量没有定义 setter:
(setq cperl-indent-parens-as-block t)

关于emacs - 如何设置defcustom变量,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15309548/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com