[Interest] qmlformat/Emacs integration

Matthew Fincham matthewf at cat.co.za
Thu Aug 17 09:32:07 CEST 2023


Hi Sami

That looks very interesting.

It's a bit more heavy-weight than I would choose and doesn't quite fit 
with the existing workflow. Maybe something for Qt to consider is 
matching the clang-format command line arguments. That would likely make 
integration a lot easier for many systems.

Thank you for the reply.

Kind regards
Matthew



On 2023/08/16 15:01, Sami Shalayel wrote:
>
> Hi,
>
> Before implementing a Lisp program for Emacs to format your QML code, 
> you should check out the QML Language Server first!
>
> It is powered by the LSP protocol and should be easier to integrate 
> into Emacs, in comparison with writing your own qmlformat-plugin. I 
> have no experience with Emacs, but a quick google search seems to 
> indicate that Emacs already has some LSP support.
>
> The QML Language Server shipped with Qt 6.6 allows you to run 
> qmlformat from your editor, among many other features.
>
> You can read more about the QML Language Server here[1] and here[2].
>
> [1] 
> https://www.qt.io/blog/whats-new-in-qml-language-server-qmlls-shipped-with-qt-6.6
>
> [2] https://doc-snapshots.qt.io/qt6-6.6/qtquick-tool-qmlls.html
>
> Best regards,
>
> Sami Shalayel
>
> *From: *Interest <interest-bounces at qt-project.org> on behalf of 
> Matthew Fincham via Interest <interest at qt-project.org>
> *Date: *Wednesday, 16. August 2023 at 13:03
> *To: *interest at qt-project.org <interest at qt-project.org>
> *Subject: *[Interest] qmlformat/Emacs integration
>
> Hi
>
> Has anyone implemented a Lisp program for Emacs to use qmlformat?
> Something similar to the clang-format/Emacs integration using
> https://github.com/llvm-mirror/clang/blob/master/tools/clang-format/clang-format.el 
>
>
>
> My Lisp knowledge is very limited, so I haven't given it a go yet.
>
> Many thanks
> Matthew Fincham
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> https://lists.qt-project.org/listinfo/interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20230817/1aac477b/attachment.htm>


More information about the Interest mailing list