Reputation: 33744
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?
Upvotes: 10
Views: 6002
Reputation: 38177
Easiest way to do it is M-x customize-variable cperl-indent-parens-as-block.
This shows you a nice menu with the possible values etc, and adds the values to your init.el
(or emacs.el
) afterwards.
Upvotes: 0
Reputation: 3665
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)
Upvotes: 15