Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zonuexe/poc-emacs30-editorconfig
PoC for Emacs 30 Editorconfig indentation issue
https://github.com/zonuexe/poc-emacs30-editorconfig
Last synced: about 2 months ago
JSON representation
PoC for Emacs 30 Editorconfig indentation issue
- Host: GitHub
- URL: https://github.com/zonuexe/poc-emacs30-editorconfig
- Owner: zonuexe
- License: other
- Created: 2024-10-23T15:12:47.000Z (2 months ago)
- Default Branch: master
- Last Pushed: 2024-10-24T16:58:41.000Z (2 months ago)
- Last Synced: 2024-10-26T06:32:12.775Z (about 2 months ago)
- Language: Emacs Lisp
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PoC for Emacs 30 Editorconfig indentation issue
I use Emacs 30.0.91.
```
This is GNU Emacs 30.0.91 (build 1, aarch64-apple-darwin23.6.0, NS
appkit-2487.70 Version 14.7 (Build 23H124)) of 2024-10-22
```The following code will disable treesit and prioritize the legacy Cc Mode-based `js-mode` and `php-mode`.
```init.el
(advice-add #'treesit-available-p :override (lambda () nil))
```Place the following `.editorconfig` file in the directory:
```.editorconfg
root = true[*.js]
indent_size = 4
indent_style = tab[*.php]
indent_size = 4
indent_style = tab
```The directory contains the following `test.js` and `test.php`.
* `test.js`
```javascript
function foo() {
console.log("test");
}
```* `test.php`
```php