From 7a1cbb88aec0b48ec7f0ffa7201e927360033d14 Mon Sep 17 00:00:00 2001 From: Sameer Rahmani Date: Mon, 24 Apr 2023 19:32:22 +0100 Subject: [PATCH] Add support for mesonbuilds --- core/cubes/meson.el | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 core/cubes/meson.el diff --git a/core/cubes/meson.el b/core/cubes/meson.el new file mode 100644 index 0000000..7cc8b3e --- /dev/null +++ b/core/cubes/meson.el @@ -0,0 +1,44 @@ +;;; MesonCube --- Meson Build Support for FG42 -*- lexical-binding: t; -*- +;; +;; Copyright (c) 2010-2022 Sameer Rahmani & Contributors +;; +;; Author: Sameer Rahmani +;; URL: https://devheroes.codes/FG42/FG42 +;; Version: 3.0.0 +;; +;; This program is free software; you can redistribute it and/or modify +;; it under the terms of the GNU General Public License as published by +;; the Free Software Foundation, either version 3 of the License, or +;; (at your option) any later version. +;; +;; This program is distributed in the hope that it will be useful, +;; but WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;; GNU General Public License for more details. +;; +;; You should have received a copy of the GNU General Public License +;; along with this program. If not, see . +;; +;;; Commentary: +;;; Code: +(require 'fpkg) +(require 'fg42/cube) + + +(defcube fg42/meson-cube + "This cube enables support for meson build files. + +For more info checkout [[https://github.com/wentasah/meson-mode]]" + (:title "Meson cube" + :flag mesonbuild + :flag-default t) + (fpkg/use meson-mode + :bind + (("C-c TAB" . origami-toggle-node)) + :config + (progn + (when-flag company + (add-hook 'meson-mode-hook 'company-mode))))) + +(provide 'cubes/meson) +;;; meson.el ends here