Skip to content

Conversation

Malabarba
Copy link
Member

clojure-mode.el Outdated
(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. 😝

clojure-mode.el Outdated
'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