Skip to content

Emacs package for formatting Julia code using JuliaFormatter.jl

License

Notifications You must be signed in to change notification settings

ki-chi/julia-formatter

Repository files navigation

julia-formatter

Emacs package for formatting Julia code using JuliaFormatter.jl

This package is inspired by kdheepak/JuliaFormatter.vim.

Screenshot

demo

Features

This package provides two functions:

  • julia-format-region : formats the code in the region
  • julia-format-buffer : formats the code on the entire buffer

(No key bindings by default.)

Install

# In the directory appended to the load-path
git clone https://github.com/ki-chi/julia-formatter.git

Usage

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))))

License

MIT

About

Emacs package for formatting Julia code using JuliaFormatter.jl

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published