Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warn the user if they've activated the wrong major-mode #370

Merged
merged 1 commit into from
Mar 11, 2016

Conversation

Malabarba
Copy link
Member

@@ -329,6 +329,33 @@ instead of to `clojure-mode-map'."
(clojure-font-lock-setup)
(add-hook 'paredit-mode-hook #'clojure-paredit-setup))

(defcustom clojure-do-warnings t
Copy link
Member

Choose a reason for hiding this comment

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

I'd name this differently - e.g. clojure-verify-major-mode. How do you even do warnings? :-) I'm guessing you meant this to be generic, but I'm not sure that's a good idea.

Copy link
Member Author

Choose a reason for hiding this comment

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

Fair enough. 😝

'clojurec-mode))))
(when problem
(message "[WARNING] %s activated `%s' instead of `%s' in this buffer.
This is could cause problems.
Copy link
Member

Choose a reason for hiding this comment

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

This could cause problems.

@bbatsov
Copy link
Member

bbatsov commented Mar 10, 2016

Apart from my small remarks - this needs a changelog entry. Otherwise - good idea!

Malabarba added a commit that referenced this pull request Mar 11, 2016
Warn the user if they've activated the wrong major-mode
@Malabarba Malabarba merged commit 755c6c5 into master Mar 11, 2016
@Malabarba Malabarba deleted the warn-major-mode branch March 11, 2016 12:17
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