From 7afc838c07e27d74c4da92dfc0ae92bb1f4ad834 Mon Sep 17 00:00:00 2001 From: Lizzy Hunt Date: Thu, 16 Mar 2023 12:54:30 -0600 Subject: [PATCH] Fix elixir formatting --- .emacs.d/settings.org | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.emacs.d/settings.org b/.emacs.d/settings.org index ade7ba4..52b27d2 100644 --- a/.emacs.d/settings.org +++ b/.emacs.d/settings.org @@ -280,7 +280,10 @@ #+BEGIN_SRC emacs-lisp (use-package elixir-mode :ensure t - :hook ((before-save . elixir-format))) + :hook ((before-save . + (lambda () + (when (eq major-mode 'elixir-mode) + (elixir-format)))))) #+END_SRC *** Rust After installing the ~rust-analyzer~ program, the following can be used: