diff options
| author | Radon Rosborough <radon.neon@gmail.com> | 2020-05-10 10:32:04 -0600 |
|---|---|---|
| committer | Radon Rosborough <radon.neon@gmail.com> | 2020-05-10 10:32:04 -0600 |
| commit | 3e342632b834a78f31ead48b94392e00dba1542c (patch) | |
| tree | a68c03b48476640d97eb7757b540034fd12f0314 /README.md | |
| parent | bd61b7204d97a6f3dc410222d63926382d605462 (diff) | |
[#14] Explain how to modify alist
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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. |
