aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorRadon Rosborough <radon.neon@gmail.com>2020-05-10 10:32:04 -0600
committerRadon Rosborough <radon.neon@gmail.com>2020-05-10 10:32:04 -0600
commit3e342632b834a78f31ead48b94392e00dba1542c (patch)
treea68c03b48476640d97eb7757b540034fd12f0314 /README.md
parentbd61b7204d97a6f3dc410222d63926382d605462 (diff)
[#14] Explain how to modify alist
Diffstat (limited to 'README.md')
-rw-r--r--README.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/README.md b/README.md
index f4f4d87..086ce2c 100644
--- a/README.md
+++ b/README.md
@@ -75,6 +75,15 @@ variables:
like `black` and `prettier`) to commands used to run those
formatters (such as `("black" "-")` and `(npx "prettier" input)`).
See the docstring for more information.
+ * You can manipulate this alist using standard Emacs functions.
+ For example, to add some command-line options to Black, you
+ could use:
+
+ ```elisp
+ (setf (alist-get 'black apheleia-formatters)
+ '("black" "--option" "..." "-"))
+ ```
+
* `apheleia-mode-alist`: Alist mapping major modes and filename
regexps to names of formatters to use in those modes and files. See
the docstring for more information.