KarimAziev / prettier-elisp

Minor mode to format emacs lisp code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

prettier-elisp

Minor Mode To Format Emacs Lisp Code.

Installation

Emacs >= 27.1 is required.

Manual

Download the source code and put it wherever you like, e.g. into ~/.emacs.d/prettier-elisp/

git clone https://github.com/KarimAziev/prettier-elisp.git ~/.emacs.d/prettier-elisp/

Add the downloaded directory to the load path:

(add-to-list 'load-path "~/.emacs.d/prettier-elisp/")
(require 'prettier-elisp)
(use-package prettier-elisp
  :straight (prettier-elisp
             :repo "KarimAziev/prettier-elisp"
             :type git
             :host github))

Minor modes

prettier-elisp-mode

Format current top level form on file save when this mode is turned on.

prettier-elisp-buffer-mode

Format whole buffer on file save when this mode is turned on.

Commands

prettier-elisp-buffer

Format all buffer.

prettier-elisp

Format current top level form.

prettier-elisp-ensure-top-level-newlines

Format lines before and after top forms.

About

Minor mode to format emacs lisp code

License:GNU General Public License v3.0


Languages

Language:Emacs Lisp 100.0%