Skip to content
Snippets Groups Projects
Commit 8406ea3f authored by Michael Hauspie's avatar Michael Hauspie
Browse files

Add slint-mode and slint-lsp configuration

parent c092c471
Branches
No related tags found
No related merge requests found
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment