Re: [vpp-dev] Some Emacs lisp to auto run indent on save.

2019-05-20 Thread Christian Hopps
Ray Kinsella writes: Hi Chris, How does it differ from what is already available in extras. https://git.fd.io/vpp/tree/extras/emacs/fix-coding-style.el Is it the extra hook that triggers the functionality on save. It looks like that file is adding those "INDENT-OFF/INDENT-ON" pairs

Re: [vpp-dev] Some Emacs lisp to auto run indent on save.

2019-05-20 Thread Ray Kinsella
Hi Chris, How does it differ from what is already available in extras. https://git.fd.io/vpp/tree/extras/emacs/fix-coding-style.el Is it the extra hook that triggers the functionality on save. Ray K On 19/05/2019 17:43, Christian Hopps wrote: > Hi vpp-devs, > > Having gotten bit by a

Re: [vpp-dev] Some Emacs lisp to auto run indent on save.

2019-05-19 Thread Christian Hopps
Damjan Marion writes: On 19 May 2019, at 18:43, Christian Hopps wrote: Hi vpp-devs, Having gotten bit by a checkstyle failure on my first submission, I decided to port the "go-like" functionality of auto-formatting the file (using indent since that's what vpp uses) on file save in

Re: [vpp-dev] Some Emacs lisp to auto run indent on save.

2019-05-19 Thread Damjan Marion via Lists.Fd.Io
> On 19 May 2019, at 18:43, Christian Hopps wrote: > > Hi vpp-devs, > > Having gotten bit by a checkstyle failure on my first submission, I decided > to port the "go-like" functionality of auto-formatting the file (using indent > since that's what vpp uses) on file save in Emacs.. Here's

[vpp-dev] Some Emacs lisp to auto run indent on save.

2019-05-19 Thread Christian Hopps
Hi vpp-devs, Having gotten bit by a checkstyle failure on my first submission, I decided to port the "go-like" functionality of auto-formatting the file (using indent since that's what vpp uses) on file save in Emacs.. Here's the lisp