From b655f6aa1f55c385f8821ffc29d950ec2b68a9b1 Mon Sep 17 00:00:00 2001 From: Colin Woodbury Date: Fri, 9 Feb 2024 09:20:30 +0900 Subject: [PATCH] docs(fortran): show how to customize fprettier --- modules/lang/fortran/README.org | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/modules/lang/fortran/README.org b/modules/lang/fortran/README.org index 6ccfa6598..1330d93ad 100644 --- a/modules/lang/fortran/README.org +++ b/modules/lang/fortran/README.org @@ -97,20 +97,28 @@ your Bash Profile, etc., and log out and in again._ Now Doom will be able to use Good luck and happy computing! -** efmt +** Auto-formatting When [[doom-module::editor format]] is enabled and [[doom-executable:fprettify]] is installed, buffers can be formatted with [[fn:apheleia-format-buffer]]. Enable [[doom-module::editor format +onsave]] to format the buffer on save. +See below for advanced configuration. + * TODO Usage #+begin_quote 󱌣 This module has no usage documentation yet. [[doom-contrib-module:][Write some?]] #+end_quote -* TODO Configuration -#+begin_quote - 󱌣 This module has no configuration documentation yet. [[doom-contrib-module:][Write some?]] -#+end_quote +* Configuration + +** Customising fprettier + +If you want different arguments to be passed to =fprettier=, follow this example: + +#+begin_src emacs-lisp +(after! f90 + (set-formatter! 'fprettify '("fprettify" "--enable-decl" "-w" "4" "-") :modes '(f90-mode fortran-mode))) +#+end_src * Troubleshooting /There are no known problems with this module./ [[doom-report:][Report one?]]