Skip to content

Don't set variables like fill-column for excluded files #365

@tmuehlbacher

Description

@tmuehlbacher

I have editorconfig set up like so:

(use-package editorconfig
  :diminish editorconfig-mode
  :hook (after-init . editorconfig-mode)
  :init
  (setq editorconfig-exclude-regexps '("COMMIT_EDITMSG"
                                       "cover-letter\\.patch")))

I want to have editorconfig rules like this at the project root not interfere with fill-column when writing commit messages or git patch cover letters that typically should use 72 characters per line.

[*]
max_line_length = 80

It seems that for this editorconfig-set-local-variables should only be called if the exclude modes/regexps checks call for it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions