10sr

Results 38 comments of 10sr

As an unofficial project, I've created a package [editorcofnig-custom-majormode](https://github.com/10sr/editorconfig-custom-majormode-el) as an extension for [`editorconfig-emacs`](https://github.com/editorconfig/editorconfig-emacs) plugin, mostly for this purpose. File type configuration is called `major-mode` in Emacs, and this plugin...

@xuhdev Umm... it would be better to support `emacs_syntax` or `emacs_file_type`, in this case we can decide what a uniform name should have later. When just changing the name from...

I submitted a proposal PR for this. https://github.com/editorconfig/editorconfig-emacs/pull/133

I recently came up with another idea. How about using file extensions for the values? For example, add following to .editorconfig: ```ini [*.html] file_type = j2 ``` And opening `a.html`,...

> multiple different filetypes can have the same file extension It is true that some extensions are shared by several file types, I think usually there is a dedicated extension...

Recently, I experimentally (again) [implemented](https://github.com/editorconfig/editorconfig-emacs/pull/175) this feature which uses `file_type_ext` as its key name in EditorConfig Emacs Plugin: it uses the method I just proposed above. Currently this feature seems...

As for Emacs, this is the expected behavior. In Emacs, `tab_width` will be used as a value for `tab-width`, and `indent_size` for major-mode specific indentation offset variables. When `tab-width` is...

Really sorry I totally forgot to respond to this thread. IMO we don't need to worry about this, in most cases the values in .editorconfig and .dir-locals.el should be consistent...

Thanks! It makes sense, but unfortunately it is difficult because `editorconfig` command cannot tell where values are defined... (for example when output of `editorconfig /path/to/file` is `key1=value1`, we cannot know...

As for me having a value for this seems too much... How about using `editorconfig-custom-hooks`? ``` (add-hook 'editorconfig-custom-hooks (lambda (hash) (when (eq major-mode 'yaml-mode) (setq indent-tabs-mode nil)))) ```