Emacs package for formatting Julia code using JuliaFormatter.jl
This package is inspired by kdheepak/JuliaFormatter.vim.
This package provides two functions:
julia-format-region
: formats the code in the regionjulia-format-buffer
: formats the code on the entire buffer
(No key bindings by default.)
# In the directory appended to the load-path
git clone https://github.com/ki-chi/julia-formatter.git
I recommend that you should use this package with julia-emacs.
;; Example
(require 'julia-mode)
(require 'julia-formatter)
(add-hook 'julia-mode-hook '(lambda() (julia-formatter-server-start)))
If you use use-package,
(use-package julia-mode)
(use-package julia-formatter
:hook (julia-mode . (lambda() (julia-formatter-server-start))))
MIT