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

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

[SOLVED] Re: electric-layout-local-mode does not work in c-mode and java


From: stardiviner
Subject: [SOLVED] Re: electric-layout-local-mode does not work in c-mode and java-mode
Date: Wed, 05 Feb 2020 15:38:25 +0800
User-agent: mu4e 1.3.2; emacs 27.0.50

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>> When I press ";", electric-layout-local-mode does not auto insert newline 
>> and jump to newline.
>
> CC-mode does things in its own way.  You should be able to get it to
> work by disabling CC-mode's ad-hoc solution:
>
>     (define-key c-mode-base-map ";" nil)
>
>
> -- Stefan

You're right, thanks Stefan. :)

-- 
[ stardiviner ]
       I try to make every word tell the meaning what I want to express.

       Blog: https://stardiviner.github.io/
       IRC(freenode): stardiviner, Matrix: stardiviner
       GPG: F09F650D7D674819892591401B5DF1C95AE89AC3
      



reply via email to

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