13 ms·
Master Emacs in one year
- diminish 12y agoAfter seeing TextMate struggle around the jump from version 1 to 2 and yesterday reading Sublime Text to struggle going from version 2 to 3 (to 4) I became more afraid of the sustainability of newer editors. Maybe it's time to hold stronger to your emacs, (or vi).
- ubernostrum 12y agoI've been using Emacs as my day-to-day editor for coming up on 15 years now. There is a lot to be said for picking up a tool with that kind of longevity.
- jpmattia 12y ago> I've been using Emacs as my day-to-day editor for coming up on 15 years now. There is a lot to be said for picking up a tool with that kind of longevity. To amplify your comment: I'm going on 33 years, and one of the great things about emacs is how it has changed with the times.
- Isamu 12y ago>I'm going on 33 years Your comment made me realize I'm about the same (ouch.) I started on TECO EMACS on a DEC-20, then Gosling Emacs on Unix, then GNU Emacs on Unix, then various mini-emacs on PCs, finally back to GNU Emacs. >how it has changed with the times Heh, even a glacier will surprise you.
- rikkus 12y agoI'm a vi user, having learned it when I had to admin dozens of flavours of *NIX in the 90s. I moved to Windows ten years ago for my day job, and had to use many editors which didn't support vi keybindings, so ended up learning to work with only the keys on the PC keyboard. This has worked out quite well, as these days I have vi keybindings in some Windows apps (thanks ViEmu!), but when they're not available, I can fall back to 'no help' mode and still be comfortable enough with most editing tasks. Still more<esc>bimuch <esc>ea productive with vi keys!
- commandar 12y ago>more<esc>bimuch <esc> Don't you mean "bcw"? ;)
- deleted 12y ago[deleted]
- aquamongoose 12y agoHis would be: Still much more productive with vi keys! Yours would be: Still much productive with vi keys!
- commandar 12y agoDerp, you're right. It seems I can't English this morning. :)
- hollerith 12y ago>I became more afraid of the sustainability of newer editors [such as Textmate]. I'm not afraid. After 22.5 years on Gnu Emacs, I'm considering a jump to Textmate 2. (I probably would not be considering a jump, however, without the boost to sustainability caused by Textmate 2's having been open-sourced. ADDED: also, being able to edit files on remote hosts is not important to me.)
- gooseyard 12y agoI gave Sublime Text a shot (20 years emacs), but ran into the same thing that has kept me from using emacs x11 for more than a few weeks at a time, which is that I spend maybe 30% of my time editing files on remote machines, connected over ssh, often through complicated tunneling arrangements that make using Tramp a pain to use. I keep thinking that what I really need is to switch all the machines I use to Plan9 to abstract away the remote sessions, I guess then I'd have to learn Acme :)
- deleted 12y ago[deleted]
- jefurii 12y agoI've had trouble using Emacs to edit remotely via SSH/tramp, but the following ~/.ssh/config settings helped me a lot: # stop ssh connections from freezing KeepAlive yes ServerAliveCountMax 10 ServerAliveInterval 10 # Lets you bounce through an arbitrary number of hosts. # ex: ssh 1sthost/2ndhost/3rdhost Host */* ProxyCommand ssh $(dirname %h) nc -w1 $(basename %h) %p
- noelwelsh 12y agoAt last, a reason to check G+! I also need to learn about smex. Interesting to see he uses evil-mode. I've just started using it, and so far the jury is out. I have yet to find an equivalent to move by sexp (move by sentence [()] doesn't do the same thing for me) for instance. I'm less interested in an exact replica of Vim than a more efficient editing experience. Perhaps this will ease with more experience.
- danso 12y agoReading guides like these makes me think about how I sound like when I implore novices to try out the command-line. Why should I? I'll peg myself as a half-competent developer, the kind who codes everyday and can lose a weekend to a spontaneous side project. I am completely in agreeance that tool mastery is vital for enjoying and being productive in programming, I just have no concept, not from this guide, and not from many others, why Emacs is better for me than Sublime Text, nevermind why I should consider taking a year (an eternity in technological time) to master it. And I realize that's a question that requires an unfair amount of trivial knowledge (e.g. the way I work and design)...but that's kind of the core concept for me...I feel pretty productive in ST3, I can sense the shortcuts and power tools I haven't taken the time to master and where they would help me, and for the most part, I design my projects in a way that fit the ST3 navigational flow...which I imagine is a side-effect of ST3's overall excellent design. In general, though, the bottleneck for me in programming isn't the typing of code or navigating through files, it's the sitting and thinking...rarely do I ever feel that ST's navigational functions cause me to lose context or concentration. So all things considered, what value does Emacs bring me? Is it better in general programming situations? Or for ones in which a highly customized environment is needed? In that case, then fashion the argument properly...I would never argue that Ruby is the best language for all purposes, but I could certainly argue that it's a great contender for specific domains, and as a "glue" code. Maybe the OP lists some compelling use cases further down in this document, but I pretty much stopped reading at this line, which gives me low confidence that me and the OP share the same worldview of how things work: > No job ad will list Emacs as a required skill. That’s actually a good thing. It ensures that only honest technical guys exist in Emacs community.
- tokenrove 12y ago> nevermind why I should consider taking a year (an eternity in technological time) to master it. I don't want to proselytise, but maybe that hints at one of the core appeals of emacs. A year is nothing in terms of the span of time emacs has been around, and so time invested in making emacs your editor is effort that won't be discarded in the next technological cycle. The other aspect is what I mean by "making emacs your editor"; emacs has had a lasting appeal because it is so general, and so malleable. Emacs becomes a construction material for your personal editor, and everyone who uses it seriously ends up with something idiosyncratic and ad hoc, in the best senses of those words.
- avalonalex 12y agoAny one know how Sublime Text's Command Palette alternative in emacs?
- DigitalJack 12y agonot too sure if I understood, it's been a while since I used sublime text. meta-x is probably the most literal analog of the command pallet, but you might be asking about packages, in which case using meta-x to bring up the 'command input' and typing package-list-packages might be what you are looking for.
- binarysoul 12y agomaybe smex? http://www.emacswiki.org/emacs/Smex http://www.emacswiki.org/emacs/Smex
- klibertp 12y agoI use Smex + ido-vertical-mode which looks like this: http://klibert.pl/ido-vertical.png http://klibert.pl/ido-vertical.png. It's closer to how the "command palette" looks like than the normal ido. It doesn't display keybindings next to commands like Sublime does, but if you have `suggest-key-bindings` set, Emacs will show you command binding when you execute it: http://klibert.pl/suggest-key-binding.png http://klibert.pl/suggest-key-binding.png Helm (https://github.com/emacs-helm/helm https://github.com/emacs-helm/helm) is another way of doing this, although I don't use it (yet - I'm going to check it out sooner or later). The "command palette" (M-x or <esc>: in Emacs/Vim respectively) is a very useful tool for both exploring and working with the editor. It's kind of sad that people forgot about it for a few decades and only rediscovered it recently thanks to Sublime and similar.
- deleted 12y ago[deleted]
- Goladus 12y agoOnce you have mastered Emacs, you are good at all other editors I haven't found that to be true at all. I find that due to archaic idiosyncrasies and the customization possible with emacs, the more time I spend with it the more difficult it becomes to use different editors.
- k__ 12y agoYes, I had the same impression. All people I know who use either Emacs or Vim on a regular basis are bound to them. On the other hand, they run everywhere and are open source, so it's probably no problem.
- TallGuyShort 12y agoI can't tell you how often this happens to me:w:bd
- sjolsen 12y agoI haven't found that Emacs has made it harder to use other editors. It's just made me realize how horrible it's always been to use them, hammering away at the arrow keys, using the mouse way more often than should be necessary, spending time on fixing whitespace that should be spent writing code… Then there's the fact that Emacs really isn't an editor. If anything, it's a shell that runs elisp programs, chief among which is a text editor. Programs like magit and ansi-term (and gnus and compile and dired and TRAMP and…) are good examples of this.
- mbrock 12y agoI say it's a dynamic Lisp environment with a UI based on textual buffers. Compare it with Squeak, for example.
- bch 12y agoThat's similar to what I joke about it being when people complain about it being bloated: It's a LISP VM, which happens to have a thriving ecosystem of utilities that run on it. Germane to the conversation that emacs make you "good at other editors" (nb: Are other editors as programmable/versatile as Emacs and vi -- certainly edtiors need to be able to rise to a level required by the operator... I haven't worked w/ textmate or sublime, etc., etc.) -- I've recently shelved Emacs for vi to "level-up" my vi skills. I'm as I delve into vi, I'm finding facilities that I really hadn't imagined in my previous episodes w/ vi, and I think part of it can be attributed to my years w/ Emacs, and the attitude that it instilled: "There has to be a way to do what I'm imagining".
- john2x 12y agoI started with purcell's config as well. I did two separate attempts at getting started from scratch, and it was just too much. Using purcell's config made me somewhat productive in a week. Now I'm starting to do my own changes to his config, but there's still a lot of stuff I'm afraid to touch. I'm thinking of declaring ".emacs bankruptcy" soon, or maybe start from something more minimal like the Starter Kit linked in the article (I wish I knew about it before starting with purcell's) Biggest thing I miss when I moved from Vim was tmux. Window management in Emacs is a nightmare, and the shells suck as well.
- jordigh 12y agoI started with nothing. I believe that just like every Jedi must build their own light sabre, every Emacs user should build their own dot-emacs. Conversely, thus spake the great French philosopher: "hell is other people's .emacs" Emacs is a stern taskmaster, but she repays the investment in multitudes. Glory be to the thermonuclear text editor. https://duckduckgo.com/?q=thermonuclear%20text%20editor https://duckduckgo.com/?q=thermonuclear%20text%20editor
- derengel 12y agoI use emacs with tmux, why do you have to leave tmux if you move away from vim? about the emacs shell, yeah I don't use it, use tmux or screen ;)
- deleted 12y ago[deleted]
- thatben 12y agoA great reference with some pragmatic advice. I've heard that one of the main benefits to emacs is that it can be used to tool itself to one's needs; curious to know if that's what others have found?
- camperman 12y agoYes, emacs is wonderfully customizable, but there's a deeper idea underneath. By investing time and effort into learning it and buying into its conceptual view of the world as text buffers that can be manipulated, you gain a level of mastery over your environment that's simply not possible with an IDE or specialist tool. And we are all deeply motivated by mastery. Some authors like Dan Pink say that mastering something is the biggest motivation of all, even above recognition and money. Many IDEs are pretty veneers on sequences of complex commands that must be learned by rote. Emacs gives you text buffer interfaces to whatever you want to do, a mostly consistent model for dealing with them and the programmability to change whatever you like.
- dimillian 12y agoI may be raging, but if you need one year to master an IDE/Text editor there is something wrong.
- subsection1h 12y agoMaybe your definition of "mastery" is different than the author's. To help us better understand your definition of mastery, please list for us all of the things that you believe you have mastered, along with the amount of time you devoted to mastering each thing.
- Monkeyget 12y agoIt takes a year because you learn it over time. Learning a tool progressively is the best way to go. There is a wonderful presentation called '7 Habits For Effective Text Editing 2.0' [1] explaining this philosophy. The idea is to get the basics down upfront and then get more proficient gradually over time. When you use the tool you stay aware of what you are doing. When you find an inefficiency in the way you use the tool, find a quicker way and make it an habit. This is the most efficient. If you only care about the code you have to type right now and never read the editor's documentation nor learn new commands you'll keep using only basics commands and never will gain proficiency. Not efficient. If on the other hand you try to learn every feature immediately you'll waste time learning things you won't use and forget most of them anyway. Not efficient. [1] https://www.youtube.com/watch?v=p6K4iIMlouI#t=2085 https://www.youtube.com/watch?v=p6K4iIMlouI#t=2085
- wging 12y agoYou'll be productive in a far shorter time than one year, but the ceiling on what you can do is far higher.
- octopus 12y agoA developer who is curious enough to try Lisp is possibly more intelligent than average This is the kind of exaggeration that makes a lot of people to avoid even trying Lisp. Any programming language that uses a different programming paradigm than the one you are familiar with will make you a better programmer.
- GFK_of_xmaspast 12y agoI don't really have any desire to try lisp, and every time I see that kind of lisp advocacy I have even less.
- awj 12y agoIf you do decide to try a lisp, don't start with Emacs Lisp. It's a mess. Go with Clojure, out of all lisps it's one of the least self-congratulatory about how awesome they all are for using lisp.
- thejdude 12y agoWell, Clojure also was a mess when I tried it (2 years ago maybe?). Leiningen (a/the build system) was pretty slow, and I couldn't find a way to use the language in a more lisp-like way easily, like editing a few files and (re)loading them into a running REPL (other than iterating through all buffers in Emacs and loading/evaluating them manually; there may have been other problems as well, I don't remember). You know, like you can edit a few Java files in Eclipse, press shift-ctrl-s, and have the new code hot-deployed into your debugging session. Maybe the people who wrote the Clojure tutorials considered that question to be SO natural they didn't even mention it, but I found it very unintuitive. And running a very slow tool on every code change and waiting for the build and then starting the program is very unnatural and un-lisp-like. Common Lisp is a bit old by now, but it's always been very stable and fast. Maybe Racket is a more modern+mature Lisp family member that's nice to try.
- agentultra 12y agoI also tried getting into Clojure around that time. I was coming from CL where we have nice things like conditions and restarts, dynamic variables, and CLOS -- being able to hit an error in the debugger, inspect the slot of the instance of some object that caused the error and recompile the class definition to fix the error without restarting the program is really nice (all of the running instances are updated). I was not used to Clojure's unhelpful tracebacks. I don't understand what age has to do with anything... CL is still a good language.
- mentos 12y agoCan anyone share what they feel are their top 3 greatest workflow improvements in productivity going from a point and click IDE to a shortcut based IDE like emacs?
- dman 12y ago1. Doing funky things with symbol under cursor. In past lives ive had documentation for things like assembly instructions, opengl apis etc displayed inside emacs. 2. Emacs macros. 3. Lack of hopping between terminal and editor.
- rdtsc 12y agoThe improvement for me: * speed of typing : I really appreciate not having to take my finger off of the main part of the keyboard to use arrows or the mouse, I also don't like the 2 stack (2 mode) switching for vi. Somehow I find it easier to remember the few keyboard cords the toggling of modes. * works in a terminal : launch with emacs -nw and you can work across an ssh terminal with same syntax highlighting, same shortcuts * available for most OSes : my co-workers use fancy new editors except they have to rsync code from the server back to their latest Ubuntu, OSX or Windows just to edit it. * people like to customize it and there are modes for all kinds of esoteric languages and build systems : i don't fiddle much with my .emacs so it is not benefiting me personally but others swear by it
- fearandclothing 12y agoFor me it's less about productivity and more about comfort. When I first started using Emacs I felt like it was a lot easier to move the cursor around and manipulate text with shortcuts consisting of keys that were already near where my hands were on the keyboard. I use vim now though, and I find that the keybindings feel much more natural, being based on the positions of the keys rather than mnemonic-based ones in Emacs (e.g. ctrl-n for "next line").
- ExpiredLink 12y agoWhat's a "point and click IDE"? Eclipse and Visual Studio are "shortcut based". I've never seen a "point and click IDE" except maybe SQL Windows/Gupta/Centura.
- scottlocklin 12y agoA friend of mine asked me this recently: are there many young programmers investing in emacs? I only know a few... it's kind of depressing.
- MarcScott 12y agoI'll be using emacs as the sole text editor with my students in September, so there'll be a few more young programmers learning how to use it.
- parfe 12y agoI hope you will be teaching Intro to Emacs. Why else would you impose a text editor on students?
- joeclark77 12y agoI don't know who Marc is teaching, but you would be astonished by how many undergrads in a computer information systems course do not know what a text file is. They'll take a programming course with C# in Visual Studio, and come away thinking that you can only program in Visual Studio with Visual Studio files. Then you get them in a database course the next semester and assign them some SQL, and they'll try to write their scripts in Word. Can't blame them for not learning what the previous teachers didn't teach, but I'd sure blame myself if they got to day 2 in my class and I didn't correct it. Now I tend to start my classes by haranguing them to install Notepad++ or whatever alternative exists for Mac users. I'm getting a little sick of Notepad++ and this thread has me thinking I should give emacs a try. (Probably not for my students though!)
- klibertp 12y agoIntro to programming with any kind of Lisp as a language could be a good reason to do this. Unless the Lisp in question is Racket - DrRacket is quite nice Lisp IDE if you remember to enable a few options (like auto-pairing of parens, which I have no idea why would be disabled in any Lisp environment by default...).
- 12y ago
- nmac 12y ago-> "I believed Microsoft Windows was only platform worth to develop software." This sounds like the first line of a Kafka-esque horror story.
- alex_duf 12y agoOut of curiosity, and this is a real question not a troll : What can emacs and vi do that a regular IDE can't ?
- ithkuil 12y agofor me one of the important feature is the ability run in a terminal over ssh on a slow link.
- banjomonster 12y agovi: runs everywhere, installed by default on most linux distributions. emacs: incredibly customizable, you can re-write the way your editor works. Some features that I find important: editing files remotely over SSH, running a shell inside the editor (so the same editing commands work in the shell), easy to write custom file finding functions for searching different parts of a codebase, git integration (a semi-GUI interface to git), and if another editor has a feature, someone has probably created a package that adds that functionality to emacs. Also has tetris and pong.
- golergka 12y agovi: combinations of commands. http://stackoverflow.com/questions/1218390/what-is-your-most-productive-shortcut-with-vim/1220118#1220118 http://stackoverflow.com/questions/1218390/what-is-your-most...
- klibertp 12y agoI used Visual Studio, Zend Studio and Komodo IDE in the past. Some (it's not exhaustive list) of the things Emacs can do and mentioned IDEs can't: Receiving and sending emails. Being an IRC/Jabber/others client. Displaying images and pdfs directly. Bulk editing of many lines, even from different files, at once. Drawing ASCII-art diagrams. Playing tetris. Being an amazingly powerful "calculator" (http://nullprogram.com/blog/2009/06/23/ http://nullprogram.com/blog/2009/06/23/). Transparently editing file on remote machines, also executing commands on remote machines transparently. Formatting ASCII-art tables. Editing outlines/todos with support for semantic movement inside it (Org-Mode). Working in a terminal. Working in a background (--daemon mode) so that new instances just connect to the backend, reducing startup time to almost zero. Dumping a whole Emacs into single binary - all the memory Emacs uses is written to disk and next time you run it it starts very quickly, because you don't need to compile,, load and run any libraries; it's like suspend/hibernate for OSes. Having a decent mode for almost every file format out there. Displaying info about currently running OS processes, like top (proced). Multiple cursors. Rectangular selection and manipulation of rects. Registers for storing pieces of text, locations in files and others. Easy running of external commands, with or without capturing their output. Find&replace with an Elisp function as replacement (quick and effective way to transforms more complex files). Being a terminal emulator (you can run mc inside Emacs, although it's not the best possible experience). Being a shell (Eshell). Easy integration with external REPLs (like IPython, with colors and all). Displaying and working with IPython Notebooks. Splitting windows horizontally and vertically as many times as you want. If you made a bit too many windows (these are Emacs windows, they live inside one OS level window) you can enable tiling window manager for them. Easy integration with external linters for many languages. Displaying man and info pages. Having easily reachable docstrings for all the functions implemented in the editor. Hierarchical keymaps. Semantic editing of sexp (any lisp) code. And probably much more - I still learn about some new, crazy useful feature at least once a week. IDEs win in the autocompletion department and project navigation, but that depends on a language being used. For example editing Python with Jedi and Jedi.el (and Rope) in Emacs feels like working with full-featured IDE, with very accurate, context sensitive autocompletion, refactoring support, visual debugger and others.
- joeclark77 12y agoAre there any decent books out there on emacs?
- ssprang 12y agoThe official GNU Emacs Manual is good. I've slowly been working my way through it. It's a free download: http://shop.fsf.org/product/Emacs_Manual_24/ http://shop.fsf.org/product/Emacs_Manual_24/
- joeclark77 12y agoPerhaps a naive question here, but I'm interested in emacs now, and I need to ask: does your left pinky finger get used to all the CTRL and ALT key combos, or do you change the key bindings, or are there special keyboards meant for emacs use, or what? Two minutes into the tutorial I was already thinking about whether there should be some sort of hack to use CAPSLOCK instead of CTRL...
- jtan189 12y agoI use xmodmap on Linux to remap caps lock to ctrl: http://www.emacswiki.org/emacs/MovingTheCtrlKey http://www.emacswiki.org/emacs/MovingTheCtrlKey
- jaequery 12y agohonestly i have no idea why people complains about the ctrl and i actually love how accessible ctrl is. i use ctrl all the time, ctrl-c, ctrl-v, ctrl-a, ctrl-e etc ... ie; ctrl-xs ctrl-xc just rolls off my finger like nothing. i think capslock thing was just a thing of the past when capslock was where ctrl was/is now.
- jaequery 12y agoonly thing i had to do was for macs, i had to switch option key to my command key. there was no way i was able to use option key for the emacs meta key.
- a_e_k 12y agoI tend to lean on the control key with the corner of my palm rather than pressing it with a finger tip. (Though I don't use a normal home-row style of touch typing, either, so YMMV.)
- tokenrove 12y agoI always rebind capslock to control. That's essential. The other thing is adjusting the bindings to your taste; for example, I change a number of standard bindings to better suite a dvorak layout.
- 12y ago
- kazinator 12y agoI'm a competent Lisp developer (and fanatic), yet I use Vim. I've also met Vim-bashing Emacs fanatics who didn't know the second thing about Lisp (the first thing, of course, being all those parentheses).
- t4s0thcmdr 12y agoFTFY Get Emacs pinky in one year
- redguardtoo 12y agoI did mention evil-mode. Whatever problem you got, Emacs has a soluton.
- wldcordeiro 12y agoCurrently I use Sublime Text 3 with the Vintageous plugin, I'm proficient with Vim but I find myself preferring Sublime Text due to the multitude of packages available to it as well as the UI being in my opinion better and more customizable. I'm most interested in moving to Atom once it matures a bit more and the Vim style plugin also matures. That being said, I've tried using Emacs tons of times now and it just doesn't click with me. More power to you if it's your preferred editors but I'll take Vi(m) over Emacs if I have to use a legacy editor or Sublime Text with Vintageous for everything else. Hopefully soon Atom can replace Sublime Text for me and I can stay on Open Source software.