Code Monkey home page Code Monkey logo

qml-mode's Introduction

qml-mode.el

Major mode for editing QT Declarative (QML) code.


License GPLv2 MELPA MELPA Stable

qml-mode is major-mode for editing Qt Declarative (QML) code.

Installation

If you have melpa and emacs24 installed, simply type:

 M-x package-install qml-mode

Add following lines to your init file:

 (autoload 'qml-mode "qml-mode" "Editing Qt Declarative." t)
 (add-to-list 'auto-mode-alist '("\\.qml$" . qml-mode))

ChangeLog

0.4

  • Add QML component id highlighter
  • Add basic types provided by QML modules as property keyword

0.3

  • rewrite based on js-mode.

0.2

  • rewrite based on generic-mode.

0.1

  • first version fork from cataska/qml-mode.

Function Documentation

(qml-beginning-of-defun)

Value of ‘beginning-of-defun-function’ for ‘qml-mode’.

(qml-end-of-defun)

Value of ‘end-of-defun-function’ for ‘qml-mode’.


Markdown README file generated by make-readme-markdown.el

qml-mode's People

Contributors

coldnew avatar cataska avatar kuanyui avatar robertpark avatar

Stargazers

Marie Katrine Ekeberg avatar Evgeniy Dushistov avatar Chris Cochrun avatar  avatar  avatar  avatar Isaac Lewis avatar longji avatar hello-code avatar  avatar Martin Haesler avatar Felipe F. Tonello avatar Thomas Frössman avatar William Díaz avatar

Watchers

 avatar James Cloos avatar Julien Wintz avatar FutureCode avatar hello-code avatar  avatar

qml-mode's Issues

wrong number of arguments when calling `qml-mode`

calling qml-mode on emacs+ (OS X) causes

!���" [command major-mode arg #s(hash-table size 5 test eq rehash-size 1.5 rehash-threshold 0.8125 purecopy t data (quote 6 interactive 6 prefix 10 candidates 19 sorted 23)) company-begin-backend company-qml qml-mode company-qml-grab-prefix company-qml-get-completions nil] 2 ("/Users/app/.emacs.d/elpa/company-qml-20170428.1708/company-qml.elc" . 8102) (list 'interactive)], 0

Exhaustive list of components, functions, signals and enums in font locking

Hello ! The new release is a great news, I was somehow disappointed with the previous version, especially when it comes to indentation, I am eager to try out this new release as soon as it is available on Melpa. Moreover, using define-derived-mode is really the way to go.

For the record, I started the implementation of a per layer plugins.qmltypes parser, which generates the exhaustive list of components, attributes, functions, signals and enums for all Qml layers available for a given Qt distribution. The repository is jwintz/qompany, and will provide three binaries: a mode generator, and completion engine for company, and a linter for flycheck.

So far, the generated mode looks like this. I am absolutely not satisfied with this generated mode, as I had to split the regular expressions into layers so that the jit compiler does not fail.

I however wonder if there is something that can be merged at some point, a trade off between using generic regular expression and the exact list (and regexp-opt) of items ...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.