2022-01-10 01:21:14 +01:00
|
|
|
:PROPERTIES:
|
|
|
|
:ID: 9879bd30-7f42-433a-aaa4-269f5ef110fb
|
|
|
|
:END:
|
|
|
|
#+title: Elixir
|
|
|
|
#+filetags: emacs-load
|
|
|
|
|
2022-07-31 11:03:59 +02:00
|
|
|
# SPDX-FileCopyrightText: 2022 Richard Brežák <richard@brezak.sk>
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: LGPL-3.0-or-later
|
|
|
|
|
2022-01-10 01:21:14 +01:00
|
|
|
#+BEGIN_QUOTE
|
|
|
|
Elixir is a dynamic, functional language for building scalable and maintainable applications.
|
|
|
|
#+END_QUOTE
|
|
|
|
|
|
|
|
First we need a Elixir major mode.
|
|
|
|
|
|
|
|
#+BEGIN_SRC emacs-lisp
|
|
|
|
(use-package elixir-mode
|
|
|
|
:straight t
|
|
|
|
#+END_SRC
|
|
|
|
|
|
|
|
Then to make [[id:cc668372-8d95-461b-a7c6-3e2b51de3f40][LSP]] work, we hook it onto ~elixir-mode~.
|
|
|
|
|
|
|
|
#+BEGIN_SRC emacs-lisp
|
|
|
|
:hook (elixir-mode-hook . lsp)
|
|
|
|
#+END_SRC
|
|
|
|
|
|
|
|
#+BEGIN_SRC emacs-lisp
|
|
|
|
)
|
|
|
|
#+END_SRC
|