dotfiles/emacs-lisp/elixir.org

31 lines
661 B
Org Mode
Raw Normal View History

:PROPERTIES:
:ID: 9879bd30-7f42-433a-aaa4-269f5ef110fb
:END:
#+title: Elixir
#+filetags: emacs-load
# SPDX-FileCopyrightText: 2022 Richard Brežák <richard@brezak.sk>
#
# SPDX-License-Identifier: LGPL-3.0-or-later
#+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