2013-03-09 60 views
4

cperl-mode如何設置defcustom變量

,我在源看到的設置:

(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作爲全球設置?

回答

7

的函數被調用...-variables

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

,或者你也可以只使用setq,因爲變量沒有定義的制定者:

(setq cperl-indent-parens-as-block t) 
0

Easiest的方式來做到這一點是的Mx自定義變量cperl-indent-parens-as-block

這會向您顯示一個包含可能值的好菜單,然後將這些值添加到​​(或emacs.el)之後。