10 ms·
I am a little concerned you start with package repository and then org mode. Emacs is at heart a simple, modeless editor. With c-[fbpns] and c-x c-[fa] you can
by gumby 9y ago
I am a little concerned you start with package repository and then org mode. Emacs is at heart a simple, modeless editor. With c-[fbpns] and c-x c-[fa] you can immediately, if laboriously, do anything. Every new thing you learn incrementally speeds you up.
- S4M 9y ago> c-x c-[fa] You mean c-x c-[fs], right? I'm by no mean an emacs expert although I've been using it for 6 years now, and when I read your comment I thought "Wow, c-x c-a is a functionality? How comes I have never used that?", so I tried that in emacs but it's not mapped to anything. Apart from that, I fully agree with your comment.
- hellofunk 9y agoI had the same reaction when I read this. I was looking forward to getting to my computer later today so I can see what that key map does!
- gumby 9y agoYes, it's a typo (but I can't edit my post anymore). c-x c-f and c-x c-s
- omaranto 9y agoIf you want a suggestion for what to bind C-x C-a to, I use this function: (defun align-all-matches (start end regexp) "Align all matches of the given regular expression." (interactive "r\nsAlign regexp: ") (align-regexp start end (concat "\\(\\s-*\\)" regexp) 1 1 t)) It inserts space in each line of the region so that all matches a given regexp are vertically aligned. I find this to be my most common use for the powerful but complicated align-regexp. (If you call align-regexp interactively without a prefix argument it does something much like this function but only aligning the first ocurrence on each line, and if you call it with the prefix argument it prompts for all parameters of align-regexp.)
- omaranto 9y agoI don't think Emacs has been modeless in many, many years. I read that already in 1978 Emacs buffers could be used to edit files, of course, but also read email, run a shell, show a list of compilation errors linked to source locations, etc. Each of those is a completely different mode of operation with different keybindings (and different meaning for keybindings that happened to be shared).
- ajsalminen 9y agoThat's true but the text editing part is modeless as opposed to how vi and it's kin do it. Of course even that can be changed and Spacemacs has recently made it a fairly popular choice.
- gumby 9y ago"Modeless" is used as a term of art here: when entering text there is no difference between entering and editing (as opposed to, say, vi which separates editing and navigation from entry). Word and TextEdit are modeless editors. What Emacs calls "modes" have indeed been around for a long time; I started using Emacs in 1978 as it happens and did use it to read my mail. However ITS didn't have the concept of "shell" (the command entry system was also the debugger!) nor of "inferior" processes so you would exit EMACS to compile or run other programs.
- omaranto 9y agoAre you saying the term modeless only applies to text editing? I thought it was a general UI term that can be applied to any program and means that keystrokes always mean the same thing independent of context. In that case, Emacs as a whole is not modeless, but usually each individual buffer is. And sorry for getting the history wrong. I think I mixed the ITS and Multics versions up. Maybe the email reader was only in the ITS version and the Multics version had the ability to call the PL/I or Fortran compiler within Emacs and get a buffer with an error list. Does that sound right? And I'm not sure about command shells, that's probably just wrong and they came later.
- deleted 9y ago
- lottin 9y agoAgreed, although it's also true that vanilla Emacs is quite spartan and has many questionable defaults. In my opinion it would be much better if plain Emacs provided a nicer user experience out of the box, thus reducing the need for customisation and external packages which is a big barrier to entry for new users.
- Numberwang 9y agoDo you have a good set of basic customisations that anyone using Emacs should do?
- CBatts 9y agoI'm not sure how you are with vim bindings but in my opinion evil mode helps a lot with productivity.
- ahmedalsudani 9y agoYou've probably heard about it, but Mastering Emacs is fantastic. https://masteringemacs.org/reading-guide https://masteringemacs.org/reading-guide
- tomfitz 9y agohttps://github.com/technomancy/better-defaults https://github.com/technomancy/better-defaults aims to be "a small number of better defaults for Emacs". I use it, though I'm not a heavy emacs user.
- hellofunk 9y agoI think ido mode in the mini buffer is a requirement for smooth emacs use. And of course, installing any editing modes for particular program languages that you use.
- geokon 9y agoWell there is the built in tutorial for that. And it'll leave you at a point where you can frustratingly do text editing and feel a bit confused about what all the hype is and then after a few weeks/months you'll drift back to a more traditional/"modern" text editor. At least that was my experience... twice.. The only way to stick with emacs is to see how extensible and useful it is - which is really all about learning org and how to add packages. Org is really the gateway drug b/c of how useful it is for everyone - even non developers. For developers the other "killer-app" is magit. For a long time I used emacs just for magit. Only a couple of windows git GUI editors come close in usefulness
- rubenbe 9y agoI'm a long time vim user, but after a colleague showed me org-mode I installed emacs (with spacemacs). Currently I only use it to edit org files, but it feels like there is a whole ecosystem waiting to be explored.
- icen 9y agoYou should check out magit, as well.
- cle 9y agoMagit, ESS, SLIME, Cider, Gnus/mu4e, dired... There are some fundamentals that make it relatively easy to pick up anything: * Help system (nearly everything is self-documenting) * Customization * ELisp basics (write some helper functions in your .emacs) * Debugging (Edebug, just do C-u C-M-x to instrument a fn and step through it next time it's called) I've been a long-time Emacs user, and the "aha" moment happened when I realized that Emacs really boils down to three things: 1) a text editor 2) mechanisms to interact with your system (e.g. subprocesses) and 3) interactive and dynamically programmable runtime. Once you learn the fundamentals of those three things, the sky's the limit...
- brudgers 9y agoI saw the headline and my first thought was "Emacs tutorials, cool! What's not to like?" and then I clicked the link and saw Video 1 - Setting up the package manager Video 2 - Intro to Org Mode ... and thought "Why there are two things" and then came back to the comments and this thread was at the top and it sort of put the decision by the videos' authors in perspective. At it's heart, Emacs is "The Extensible, Customizable, Self-Documenting, Display Editor." [1] I'd be much more comfortable saying Notepad is a simple, modeless editor. For a contemporary developer, package management is a reasonable reference point (even JavaScript has package management). And to me, org-mode is the killer app...Oh Babel. There is nothing else quite like You. [1]: http://worrydream.com/refs/Stallman%20-%20EMACS,%20The%20Extensible,%20Customizable,%20Self-Documenting%20Display%20Editor.pdf http://worrydream.com/refs/Stallman%20-%20EMACS,%20The%20Ext...
- KirinDave 9y agoIf you want to avoid all that, just use spacemacs. Don't like VI keys? No problem, it asks you if you want them when you first start it up. Spacemacs is different, but for a new emacs user it's hard to argue with such a batteries-included approach.
- brudgers 9y agoI was not trying to avoid anything. I've been using Emacs for several years (and the same keybindings work in Bash and similar keybindings are available in many other editors/IDE's and in Firefox via plugins or settings). For me, using Spacemacs would be limiting because not every mode has bindings and none of the official Emacs documents and most of the unofficial blogs and SO questions etc. don't describe keystrokes in terms of Spacemacs. In the end, using Spacemacs is using Emacs and will sooner or later require I know Emacs. Other people may have a different experience. Personally, I don't want to spend time cross-referencing the official documentation with this: https://github.com/Somelauw/evil-org-mode/blob/master/doc/keythemes.org https://github.com/Somelauw/evil-org-mode/blob/master/doc/ke... in the middle of trying to understand an org-mode feature.
- 9y ago
- mannigfaltig 9y ago> Every new thing you learn incrementally speeds you up. Like forgetting the original keybindings and switching to evil.
- hellofunk 9y agoOr God mode.
- zamansky 9y agoI made these for people who finished the tutorial (in particular, I had my students in mind). It's very much the way I do things and the hope was it would smooth the way for people to get to customizing Emacs in their own way. I originally wasn't sure if I was going to do the mini org-mode stuff early on but thought that it would be better for organizational reasons rather than pedagogical.
- BeetleB 9y ago>Emacs is at heart a simple, modeless editor. With c-[fbpns] and c-x c-[fa] you can immediately, if laboriously, do anything. Every new thing you learn incrementally speeds you up. That kind of introduction is already in the Emacs tutorial. And it's the type that drives newcomers away. I first used Emacs in the late 90's. Even then, the regular cursor keys worked. Now I do understand that some prefer the original keybindings, but the tutorial is likely not targeting that minority.