Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
;; Support mix format command
(defun alchemist-mix-format (&optional prefix)
"Runs mix format in the project"
(alchemist-mix-execute (list "format") prefix))
(defun alchemist-mix-format-buffer (&optional prefix)
"Runs mix format on the current buffer"
(alchemist-mix-execute (list "format" (buffer-file-name)) prefix))
(eval-after-load "alchemist-mix"
(spacemacs/set-leader-keys-for-major-mode 'elixir-mode
"fa" 'alchemist-mix-format
"fb" 'alchemist-mix-format-buffer))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.