neil-lindquist / lisp-paredit

Paredit for Atom
MIT License
24 stars 5 forks source link

Feature suggestion: disable for some 'special' buffers #20

Open naartjie opened 8 years ago

naartjie commented 8 years ago

Would it be possible to disable lisp-paredit for certain buffers only?

I am using it with proto-repl, and because that uses Clojure, it gets pretty crazy when paredit picks up errors in the REPL. Would it be out of scope to do a config file with something like:

  "ignore": ["Clojure REPL"]
screen shot 2016-06-04 at 12 49 07
naartjie commented 8 years ago

For the time being, I've tamed the red down a bit in my styles.less

.lisp-paredit-status.error {
  background-color: rgba(200, 0, 200, 0.5);
}
atom-text-editor::shadow .lisp-syntax-error .region {
  background-color: rgba(80, 0, 80, 0.8) !important;
}
jasongilman commented 8 years ago

Proto REPL now uses a class for the REPL with proto-repl-repl. Using the previous example I can disable it completely using:

.proto-repl-repl::shadow .lisp-syntax-error .region {
  background-color: rgba(0, 0, 0, 0) !important;
}