Emacs cperl mode: disabling insertion of "if" etc

89 Views Asked by At

I've been using cperl-mode in Emacs for some time. On a new system, I've been getting a problematic behaviour: when I type something like "if", Emacs expands it into a full-blown statement, so it'll automatically give me

if () {
}

This is really distracting. Setting cperl-electric-keywords to nil doesn't change this behaviour. I already have cperl-hairy set to nil.

I see there was discussion of this on Perl Monks here http://www.perlmonks.org/?node_id=864654 , and it does work, as suggested there, to say cperl-toggle-abbrev, or to use the menu Perl -> Toggle -> Electric Keywords. But I want this behaviour to be permanent, and putting (setq cperl-electric-keywords nil) into my .emacs doesn't work.

How can I modify my .emacs to handle this?

0

There are 0 best solutions below