Skip to content

wentasah/meson-mode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Emacs Logo

meson-mode.el

Major mode for the Meson build system files


License GPLv3 MELPA MELPA Stable

This is a major mode for Meson build system files. Syntax highlighting works reliably. Indentation works too, but there are probably cases, where it breaks. Simple completion is supported via completion-at-point. To start completion, use either C-M-i or install completion frameworks such as company. To enable company add the following to your .emacs:

(add-hook 'meson-mode-hook 'company-mode)

Customization Documentation

meson-indent-basic

Indentation offset for meson.build files.

meson-markdown-docs-dir

Directory containing Meson markdown-formated documentation.

meson-doc-display-buffer-action

The display action used, when displaying Meson documentation.

Function and Macro Documentation

(meson-function-at-point)

Return name of the function under point. The point can be anywhere within function name or argument list.

(meson-completion-at-point-function)

Return possible completion candidates.

(meson-smie-forward-token)

Move forward by one lexer token.

(meson-smie-backward-token)

Move backward by one lexer token.

(meson-smie-rules KIND TOKEN)

Indentation rules for the SMIE engine. See the SMIE documentation for the meaning of KIND and TOKEN arguments.

(meson-lookup-doc IDENTIFIER)

Open Meson reference manual and find IDENTIFIER. Return the buffer containing the reference manual. IDENTIFIER is the name of a Meson function or object as a string. Signal a user-error if the manual could not be found or does not contain IDENTIFIER.


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