How to set defcustom variable
elisp, emacs
Solution
The function is called `...-variables`:
(custom-set-variables '(cperl-indent-parens-as-block t))
or you can just use `setq`, since the variable doesn't have a setter defined:
(setq cperl-indent-parens-as-block t)
Problem
There is cperl-mode and the setting I see in source: ``` (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) ``` I was trying to use `(custom-set-variable '(cperl-indent-parens-as-block t))` but that doesn't work so how can I change this to `t` as global setting?