working emacs config for elixir
This commit is contained in:
@@ -413,3 +413,25 @@ the description. This may destroy existing links, or change their targets so use
|
||||
"Insert node immediate, don't open buffer on new node"
|
||||
"n r I"
|
||||
#'org-roam-node-insert-immediate)
|
||||
|
||||
|
||||
;; elixir - eglot
|
||||
;; eglot configuration
|
||||
(use-package elixir-mode)
|
||||
(use-package eglot)
|
||||
(use-package exunit)
|
||||
|
||||
(add-to-list
|
||||
'eglot-server-programs
|
||||
'(elixir-mode . ("sh" "/opt/homebrew/bin/elixir-ls")))
|
||||
|
||||
(add-hook
|
||||
'elixir-mode-hook
|
||||
(lambda ()
|
||||
(subword-mode)
|
||||
(eglot-ensure)
|
||||
(company-mode)
|
||||
(flymake-mode)
|
||||
(add-hook 'before-save-hook 'eglot-format nil t)
|
||||
))
|
||||
(setq inf-elixir-project-command "iex -S mix phx.server")
|
||||
|
||||
Reference in New Issue
Block a user