Support for disabling auto-formatting via comments.Keeps trailing comments at the end of lines (without joining lines which may change their meaning). Enforces maximum line width (using the fill column).Reliable, tested with Emacs 28 source (over 1.6 million lines of code), formatting all files without making functional changes.This tool removes the need to manually format and indent code, it can be useful to re-arrange code without the need to manually reformat it. (forward-word (prefix-numeric-value arg)) (or (and (eq last-command this-command) (mark t)) Goto-char ( mark ) ) ( forward-word arg ) ( point )įorward-word ( prefix-numeric-value arg ) ) ( pointįormats to this: (defun mark-word (&optional arg allow-extend) ) ) -1 1 ) ) ) ( set-mark ( save-excursion ( Prefix-numeric-value arg ) ( if (< ( mark ) ( point ) ) ( region-active-p ) ) ) ( setq arg ( if arg ( Or ( and ( eq last-command this-command ) ( mark t ( interactive "P\np") ( cond ( ( and allow-extend ( It marks the next ARG words after the ones already marked." Or (in Transient Mark mode) if the mark is active, Interactively, if this command is repeated The place mark goes is the same place \\ would ( defun mark-word ( &optional arg allow-extend This is a package to auto-format Emacs lisp.Īpply idiomatic formatting to ELisp code, removing the need to have to concern with the details of white-space, line wrapping & bracket placement.įor a simple example, the following input can be auto formatted as follows.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |