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 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
> 
>  https://gist.github.com/choppsv1/c45a857ced56d4f9713eb7a555cfba2d
> 
> in case anyone would find it useful too. Personally, I like clang-format
> better (as it appears to have deterministic results), but that's not
> what the project chose. :)
> 
> FWIW, it only does the re-format on save if the file contains the magic
> string:
> 
>  "fd.io coding-style-patch-verification: ON"
> 
> Thanks,
> Chris.
> 
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> 
> View/Reply Online (#13089): https://lists.fd.io/g/vpp-dev/message/13089
> Mute This Topic: https://lists.fd.io/mt/31675798/675355
> Group Owner: vpp-dev+ow...@lists.fd.io
> Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [m...@ashroe.eu]
> -=-=-=-=-=-=-=-=-=-=-=-
> 

Attachment: signature.asc
Description: OpenPGP digital signature

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#13094): https://lists.fd.io/g/vpp-dev/message/13094
Mute This Topic: https://lists.fd.io/mt/31675798/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to