You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
;;; format-all-autoloads.el --- automatically extracted autoloads;;;;; Code:
(add-to-list 'load-path (directory-file-name (or (file-name-directory #$) (car load-path))))
;;;### (autoloads nil "format-all" "format-all.el" (0 0 0 0));;; Generated autoloads from format-all.el
(autoload 'format-all-buffer "format-all" "\
Auto-format the source code in the current buffer.
No disk files are touched - the buffer doesn't even need to besaved. If you don't like the results of the formatting, you canuse ordinary undo to get your code back to its previous state.
You will need to install external programs to do the formatting.If the command can't find the program that it needs, it will tryto tell you how you might be able to install it on your operatingsystem. Only BibTeX, Emacs Lisp and Ledger are formatted without anexternal program.
A suitable formatter is selected according to the `major-mode' ofthe buffer. Many popular programming languages are supported.It is fairly easy to add new languages that have an externalformatter.
If any errors or warnings were encountered during formatting,they are shown in a buffer called *format-all-errors*." t nil)
(autoload 'format-all-mode "format-all" "\
Toggle automatic source code formatting before save.
When this minor mode (FmtAll) is enabled, `format-all-buffer' isautomatically called to format your code each time before yousave the buffer.
The mode is buffer-local and needs to be enabled separately eachtime a file is visited. You may want to use `add-hook' to add afunction to your personal `after-change-major-mode-hook' in your`user-init-file' to enable the mode based on the buffer's`major-mode' and some `buffer-file-name' patterns. For example:
(defvar my-auto-format-modes '(js-mode python-mode)) (defvar my-auto-format-dirs '(\"foo\" \"bar\"))
(defun my-auto-format-buffer-p () (and (member major-mode my-auto-format-modes) (buffer-file-name) (save-match-data (let ((dir (file-name-directory (buffer-file-name)))) (cl-some (lambda (regexp) (string-match regexp dir)) my-auto-format-dirs)))))
(defun my-after-change-major-mode () (format-all-mode (if (my-auto-format-buffer-p) 1 0)))
(add-hook 'after-change-major-mode-hook 'my-after-change-major-mode)
When `format-all-mode' is called as a Lisp function, the mode istoggled if ARG is ‘toggle’, disabled if ARG is a negative integeror zero, and enabled otherwise.
\(fn &optional ARG)" t nil)
(if (fboundp 'register-definition-prefixes) (register-definition-prefixes "format-all" '("asmfmt" "bibtex-mode" "black" "brittany" "buildifier" "cmake-format" "crystal" "dartfmt" "define-format-all-formatter" "dfmt" "dhall" "dockfmt" "elm-format" "emacs-lisp" "fish-indent" "format-all-" "fprettify" "gofmt" "html-tidy" "istyle-verilog" "ktlint" "latexindent" "ledger-mode" "lua-fmt" "mix-format" "nixfmt" "ocp-indent" "perltidy" "prettier" "purty" "rufo" "rustfmt" "scalafmt" "shfmt" "sqlformat" "styler" "swiftformat" "terraform-fmt")))
;;;***;; Local Variables:;; version-control: never;; no-byte-compile: t;; no-update-autoloads: t;; coding: utf-8;; End:;;; format-all-autoloads.el ends here
|