From 8406ea3fbb8d88e067e8e2cd70e90f3687d7d732 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Micha=C3=ABl=20Hauspie?= <michael.hauspie@univ-lille.fr>
Date: Tue, 30 Jan 2024 17:04:16 +0100
Subject: [PATCH] Add slint-mode and slint-lsp configuration

---
 configuration.org | 42 ++++++++++++++++++++++++++++++++++++++++--
 1 file changed, 40 insertions(+), 2 deletions(-)

diff --git a/configuration.org b/configuration.org
index 6adae2d..a850745 100644
--- a/configuration.org
+++ b/configuration.org
@@ -112,6 +112,14 @@ and I want to be sure that compiled versions of packages are up-to-date
 (setq load-prefer-newer t)
 #+end_src
 
+** Non package modules
+
+Add a folder for .el files that are not available as packages
+
+#+begin_src emacs-lisp
+(add-to-list 'load-path "~/.emacs.d/plugins")
+#+end_src
+
 
 * Global editing configuration
 
@@ -298,12 +306,12 @@ matching parenthesis. Also do not show the welcome screen.
   )
 #+END_SRC
 
-Use Fira Code with ligature
+Use Fira Code but do not use ligature everywhere
 
 #+begin_src emacs-lisp
 (use-package fira-code-mode
   :config
-  (global-fira-code-mode)
+  ;(global-fira-code-mode)
   (setq fira-code-mode-enable-hex-literal nil)
   )
   (add-to-list 'default-frame-alist '(font . "Fira Code-12" ))
@@ -770,6 +778,16 @@ Set line count limit before using =begin_example= blocs in code evaluation resul
 #+RESULTS:
 : 10
 
+** Transform json results to org-table
+
+I found a nice way to use json results in org mode by transforming a
+json output to an org table. The emacs module can be found here:
+https://github.com/noonker/json-to-org-table
+
+#+begin_src emacs-lisp
+(require 'json-to-org-table)
+#+end_src
+
 * Markdown mode
 
 I use pandoc to generate html output from markdown file. In order to
@@ -892,6 +910,7 @@ language currently in use.
          (c++-mode . lsp)
          (python-mode . lsp)
          (rust-mode . lsp)
+         (slint-mode . lsp)
          (lsp-mode . lsp-enable-which-key-integration)
          )
   :config
@@ -1094,6 +1113,25 @@ Packages to edit terraform configuration files
 (use-package company-terraform)
 #+end_src
 
+*** Slint
+
+[[https://slint.dev/][Slint]] is a UI framework usable in Rust. It is based on a DSL to
+describe the UI element.
+
+Install and load slint mode package.
+
+#+begin_src emacs-lisp
+(use-package slint-mode)
+#+end_src
+
+
+=slint-lsp= langage server can be installed using:
+
+#+begin_src shell
+cargo install slint-lsp
+#+end_src
+
+
 ** Magit
 
 [[https://magit.vc/][Magit]] is git porcelain inside emacs.
-- 
GitLab