atom / language-clojure

Clojure package for Atom
Other
49 stars 48 forks source link

Turn `autoIndentOnPaste` off to prevent indent on pasted code #49

Open wingyplus opened 8 years ago

wingyplus commented 8 years ago

To fix #34. I'll disable autoIndentOnPaste for now.

Thanks.

50Wliu commented 8 years ago

Are there any scenarios where this would be helpful to leave on?

wingyplus commented 8 years ago

When I have a code:

(defn index-of-any [pred coll]
  (first (index-filter pred coll)))

(foo)
(bar)

When I want to copy (foo) and (bar) to another source file under another code block, I don't want copied code to be indent like this:

(defn do-something 
  foo)

  (foo)
  (bar)