mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-25 17:46:14 +01:00
a5a651dbb9
Signed-off-by: main <magic_rb@redalder.org>
31 lines
661 B
Org Mode
31 lines
661 B
Org Mode
: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
|