[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] scratch/editorconfig-cc 0b314fcbea 135/351: Update README for s
From: |
Stefan Monnier |
Subject: |
[nongnu] scratch/editorconfig-cc 0b314fcbea 135/351: Update README for some variables |
Date: |
Thu, 13 Jun 2024 18:38:47 -0400 (EDT) |
branch: scratch/editorconfig-cc
commit 0b314fcbea9d3d3193de5a2d366916431464ed3b
Author: 10sr <8slashes+git@gmail.com>
Commit: Stefan Monnier <monnier@iro.umontreal.ca>
Update README for some variables
---
README.md | 35 +++++++++++++++++++++++++++++++++--
1 file changed, 33 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index 00e484c469..77fff42692 100644
--- a/README.md
+++ b/README.md
@@ -1,8 +1,8 @@
[](http://melpa.org/#/editorconfig)
[](https://stable.melpa.org/#/editorconfig)
-This plugin also has a core library implemented in Emacs-Lisp, and fallback
-to it when no core executable is found.
+This plugin also has a built-in core library implemented in Emacs-Lisp, and
+fallback to it when no core executable is found.
```emacs-lisp
(require 'editorconfig)
@@ -54,6 +54,37 @@ You can also modify this variable with the command
<kbd>M-x customize-variable [RET] editorconfig-indentation-alist [RET]</kbd>.
For a bit more compilicated cases please take a look at the docstring of this
variable.
+### `editorconfig-exec-path`
+
+String of `editorconfig` executable name (command name or full path to
+the executable).
+
+
+### `editorconfig-get-properties-function`
+
+Function to use to get EditorConfig properties.
+
+For example, if you always want to use built-in core library instead
+of any EditorConfig executable to get properties, add following to
+your init.el:
+
+``` emacs-lisp
+(set-variable 'editorconfig-get-properties-function
+ #'editorconfig-core-get-properties-hash)
+```
+
+Possible known values are:
+
+* `editorconfig-get-properties` (default)
+ * Use `editorconfig-get-properties-from-exec` when
+ `editorconfig-exec-path` executable is found, otherwise use
+ `editorconfig-core-get-properties-hash`
+* `editorconfig-get-properties-from-exec`
+ * Get properties by executing EditorConfig executable specified in
+ `editorconfig-exec-path`
+* `editorconfig-core-get-properties-hash`
+ * Always use built-in Emacs-Lisp implementation to get properties
+
## Testing
Make and [CMake](https://cmake.org) must be installed to run the tests.
- [nongnu] scratch/editorconfig-cc 9bd6af5f0e 097/351: Add EditorConfig group definition, (continued)
- [nongnu] scratch/editorconfig-cc 9bd6af5f0e 097/351: Add EditorConfig group definition, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc ca7aeff4b3 159/351: Add variable to disable indent_size when conditions are met for lisp, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc b1d254fd14 122/351: Add a :lighter "EditorConfig" for editorconfig-mode., Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 6f7137e593 113/351: Simplify definition of string-integer-p (#96), Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 5034a3ae16 145/351: Add function to open nearest .editorconfig file (#131), Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 851c96f125 116/351: Update README.md, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc d02b7027ae 132/351: Add plugin-tests submodule, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc a09b197c76 156/351: Add two test cases for fnmatch, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc d5c50cb9d7 102/351: Update README: add information about customize-variable., Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc c48f549c3a 152/351: Fix typo, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 0b314fcbea 135/351: Update README for some variables,
Stefan Monnier <=
- [nongnu] scratch/editorconfig-cc 90fba8ee80 164/351: Add doc/.gitignore, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 7ab129a73b 096/351: Add a comment for contributors, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 508e854392 107/351: Trivial commentary fix, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 49421bc1a4 123/351: Add one space to editorconfig-mode lighter text, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc f0abc53ff0 157/351: Fix fnmatch for new cases, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc e867da296c 124/351: Reindent using Emacs-lisp style., Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc d8742edc38 168/351: Fix make doc command, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc ccfd1910f4 171/351: Remove unused variable, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc efffe74bbf 166/351: Remove doc/.gitignore, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 706ac40ec2 193/351: Make `fixtures' a constant (#176), Stefan Monnier, 2024/06/13