Skip to content

Treat direnv-non-file-modes as possibly derived modes.#49

Merged
wbolster merged 2 commits into
wbolster:masterfrom
stribb:derived-mode
Jun 19, 2019
Merged

Treat direnv-non-file-modes as possibly derived modes.#49
wbolster merged 2 commits into
wbolster:masterfrom
stribb:derived-mode

Conversation

@stribb
Copy link
Copy Markdown
Collaborator

@stribb stribb commented Jun 19, 2019

Suppose we're in a Magit Status buffer, whose major-mode is magit-status-mode, which is derived from magit-mode.

With this change, if direnv-non-file-modes contains magit-mode, direnv-mode
will now treat it as a non-file mode.

Open question: do we add magit-mode to the default list?

Say major-mode is magit-status-mode, which is derived from magit-mode.
With this change, if direnv-non-file-modes contains magit-mode, direnv-mode
will still treat it as a non-file mode.
Copy link
Copy Markdown
Owner

@wbolster wbolster left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in general, looks good. minor question above

Comment thread direnv.el Outdated
@wbolster
Copy link
Copy Markdown
Owner

thanks! whenever this is merged, another pr that adds magit to the defaults sounds fine

I'h having a hard time believing it but I had indent-tabs-mode t.
@wbolster wbolster merged commit 91d6fcc into wbolster:master Jun 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants