您需要 登录 才可以下载或查看，没有帐号？立即注册
One of the first things you’ll probably want to do when switching to a new language is to find an editor which will make you efficient at writing code. In Clojure community there’s a strong leader — Emacs . While Emacs is really powerful and flexible editor, it’s really hard to learn. Especially when you just started with the language and doesn’t know how to apply in practice all the cool features of the editor.
Atom is surprisingly good for writing ClojureScript code. With a couple of plugins it becomes just enough for beginners. I’m using this setup for like year and a half and I still doesn’t feel a need to get into more advanced stuff.
Syntax highlighting and code snippets: language-clojure
Syntax highlighting is already built-in into the editor, so you don’t have to worry about this. There are also a couple of useful code completion snippets.
language-clojure code snippets in action Handling parens: Parinfer , atom-parinfer
Adjusting parens manually in Lisp code is very annoying and scary for beginners. Parinfer is an editor mode which does auto-adjusting parens when indentation changes and vice versa. It is developed by Shaun LeBron . You’ll appreciate this plugin for sure.
Parinfer indent mode
Parinfer paren mode Structured editing: lisp-paredit
Lisp code is a structure made of lists. It means that the code can be navigated and manipulated with respect to its structure. lisp-paredit is a plugin for Atom which provides Paredit functionality. It allows you to navigate between s-expressions, instead of moving cursor manually. Deleting/copying an entire list under the cursor is also trivial. I personally use only a couple of its features, but there’ much more of them.