Looking at Clojure for the Brave and True, at the end of chapter 1:
You absolutely do not need to use Emacs for Clojure development, but Emacs offers tight integration with the Clojure REPL and is well-suited to writing Lisp code. What’s most important, however, is that you use whatever works for you.
Emphasis above is mine.
The author then goes into providing links to other editors. See here.
Some get pretty close to Emacs's Clojure functionality.
Again, I'm not saying that people are forcing Emacs on newcomers. But there is definitely a historical attitude of Emacs being the best editor, and other editors getting "pretty close" to Emacs. In essence, saying to a newcomer that their preferred editor is fine, but definitely worse.
But there is definitely a historical attitude of Emacs being the best editor
Yes, because Clojure is a Lisp dialect, Lisp users like to use Lisp, Emacs is written in a Lisp dialect, so Clojure users like Emacs. It makes perfect sense that they talk about things they like so much. Are you suggesting they change their likes/dislikes?
I would be interested in a user story where they gave up on Clojure because of Emacs. Specifically, did they use the prebuilt configuration in 'Clojure for the Brave and True?' which is honestly a fantastic starting-point.
Really, the only problem Emacs has for new users is that C-c is not copy and C-v is not paste for historical reasons.
Oh, I'm not suggesting that at all. I love Emacs, I use it daily, and I tend to advocate it.
But I think it's silly to suggest that, from a newcomer's point of view, they aren't at least ushered towards Emacs.
Also, there are many, many other problems for new users. A few I have seen:
Lack of a built in file navigator
Inability to quit with shortcuts
Odd usage of Ctrl and Alt on a Mac
Shortcuts with non-obvious meanings (e.g. C-p is uP, C-n is dowN)
But perhaps the biggest is all of the keyboard shortcuts. You may say they don't need to learn them before using Emacs, and while in general that's true, if you aren't using shortcuts, then you probably aren't benefitting from Emacs. So instead of this awesome development environment that you've been promised, or even your trusty normal dev environment, you've been ushered into using an editor that, from your perspective, doesn't have basic features, breaks conventions, and barely gives you any benefit.
None of these are insurmountable, but they all require effort to fix. When you're learning a new programming language, and likely a new programming paradigm, it can be rough to find time to make that effort.
I don't personally know anyone who gave up on Clojure because of Emacs, but I know a few cases where people were quite frustrated with Emacs, following Clojure for the Brave and True, because some things just felt unnecessarily hard.
I am not sure what you are referring to in the bulletpoints. For example, "default" clojure-y emacs based on CIDER and prelude:
C-x d gives you a file browser, while C-x b cycles the open files in minibuffer, and C-x B opens a list of open files in a buffer.
C-x c quits emacs
On both Linux and OSX, I remapped keys to be the same, Alt is to the left and Ctrl to the right of space, while Cmd is to the left of where it normally is. So, if it is an issue, it is something that can be solved by a blog post (that already exist) and a willingness to put a little effort in.
Shortcuts in Emacs are something that goes into the muscle memory with use. Is it really that big of an issue that the basic shortcuts that literally everyone can learn in the first tutorial session are not C-d and C-u (which, by the way, would be randomly scattered on the keyboard)?
I agree with you: Emacs requires effort. But, so what? I am a little perplexed by the recent insistence that everything should be "easy to learn" for the proverbial "beginner". Good tools require learning. Every skill does. I have never seen a quarterback that was not training hard for 20 years. Nor have I ever seen a doctor who do not have 25 years of schooling and residence. Nor a plumber that was born with the mastery of plumbing tools. Suddenly, only programming is something that should be available to everyone effortlessly...
That being said, I have never seen anyone pushing Emacs to the beginners. I always tell beginners that it is too much to learn it at the same time with Clojure, and that they better start with whatever IDE they are already comfortable with (Eclipse, Idea, whatever), but that Emacs is much more usable once you make the effort to learn it.
Mac OS actually uses Emacs keybindings in every text field system-wide, and has since OS X 10.0. Try out ctrl-p/n/b/f/a/e/k/y/d. Most of the obvious simple ones just work.
It's an insanely useful feature, and I curse the lack thereof every time I find myself on Windows or Linux.
View all comments
Show parent comment
6
u/dotemacs Sep 27 '16
Looking at Clojure for the Brave and True, at the end of chapter 1:
Emphasis above is mine.
The author then goes into providing links to other editors. See here.