help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cperl-mode: how to turn off autoinsertion of everything?


From: tomas
Subject: Re: cperl-mode: how to turn off autoinsertion of everything?
Date: Thu, 10 Mar 2016 08:06:53 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wed, Mar 09, 2016 at 10:33:39AM -0800, David Storrs wrote:
> I'm using GNU Emacs 24.5.1 on OSX 10.11.3.  I recently upgraded emacs from
> v22 and now cperl-mode is behaving differently -- it's "helpfully"
> inserting things like braces and newlines when it thinks it should.  I
> would like to make it stop doing this -- I don't want it modifying my text
> at all.  Don't insert braces, newlines, anything.
> 
> After a surprising amount of googling I figured out how to turn off
> everything except the newline insertion, but now I'm stumped.  How do I
> tell emacs "Don't mess with my source -- if I want something there I'll
> type it"?
> 
> Pointers to an appropriate section of the FM welcome, as I haven't been
> able to find anything relevant.

I'd recommend "customize":

 - type "M-x customize-group <ENTER> cperl <ENTER>"
 - you can now browse through all customization options related to cperl
 - there should be a subgroup "Cperl Autoinsert Details" subgroup where
   all the interesting variables reside.

(you can go straight to this customization group, but I'd guess the
landscape around that might be interesting for you).

If you "save the settings for future sessions" they'll end up as Elisp
code in your init file[1]. Look there to see how all those variables
are named and how you'd do that from Elisp.

[1] Usually. In the newer Emacsen there's one setting to tell
  Emacs to put those customizations in a separate file which
  is then included from the init file proper, which I think
  is a good idea.

regards
- -- t
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlbhHQ0ACgkQBcgs9XrR2kby5QCfc8xiRnHewPog+CpBOgMB9qvO
y2UAn0rqZ1eAZaASSfjqiCyKYPVgSMv8
=blFJ
-----END PGP SIGNATURE-----



reply via email to

[Prev in Thread] Current Thread [Next in Thread]