Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
emacs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Michael Hauspie
emacs
Commits
8406ea3f
Commit
8406ea3f
authored
1 year ago
by
Michael Hauspie
Browse files
Options
Downloads
Patches
Plain Diff
Add slint-mode and slint-lsp configuration
parent
c092c471
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
configuration.org
+40
-2
40 additions, 2 deletions
configuration.org
with
40 additions
and
2 deletions
configuration.org
+
40
−
2
View file @
8406ea3f
...
...
@@ -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 ligatu
re
Use Fira Code
but do not use ligature everywhe
re
#+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.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment