[Interest] qmlformat/Emacs integration

Sami Shalayel Sami.Shalayel at qt.io
Wed Aug 16 15:01:52 CEST 2023


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/20230816/03113cc4/attachment.htm>


More information about the Interest mailing list