Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set defcustom variable

Tags:

emacs

elisp

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?

like image 242
cnd Avatar asked Mar 09 '13 10:03

cnd


1 Answers

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)
like image 184
Dmitry Avatar answered Oct 07 '22 13:10

Dmitry