Live data from Hacker News

Org Mode for Emacs – Your Life in Plain Text

orgmode.org

61–70 of 212 posts

Re: Org Mode for Emacs – Your Life in Plain Text

#61
post #50

I learned VI before Emacs, and by the time I heard about Org Mode, I had developed a way of using Vim similarly; in a nutshell, I write in a clang file (usually named control.c), and (mis)use syntax highlighting on things like switch statement, comments, TODOs and code folding to add structure (screenshot: http://imgur.com/kqrEahz ). I did most of my coding in C in college, got into the habit of writing pseudocode in…

Organizing one's work is a bit different for each person, and since you have done a lot of work in C, certainly vi and clang files are more your /modus operandi/. However for those of us with LISP backgrounds, Emacs is definitely more suitable.

What you gain with org-mode is quite a bit:

Org-bable which allows you to write outlines with blocks of text that can call external scripts. This is a bit like a Mathematica workbook, with text notes and evaluations, but you can call to Python, Ruby, or whatever language you want.

You can export an .org file into many different formats. LaTeX, HTML and OpenOffice format are what I use most often. Note that you can modify the template to export to any custom format you want. What is very useful are the Beamer templates, where you can turn an .org document into a slideshow very easily. This is a killer feature for anyone who has to lecture often and needs a quick way to get his notes on some slides that look quite professional.

Org-mode also has an agenda, calendar and even contacts if you want to store them there. You can provide links in your agenda to a specific part of your file, so you can click on the TODO link and go immediately to what needs to be done. This is extremely valuable for a large project and saves a lot of time.

There is also org-capture for those moments when you are fixing one file and you need to remind yourself to refactor a function in another file. This helps avoid many bugs especially in a large project where the function definition can be somewhere else. You can also capture any sort of text. When looking up documentation I often capture the web page and put it in a NOTES.org file in a project, especially when it is something obscure that I don't use that often. These notes can also have links/todos, etc. making it very practical.

Also since I do email in Emacs [mu4e], I can simply make a TODO from an email with org-capture, and it goes into the agenda. In the agenda I have a link to the original email and to any other file or notes that I add to this task. This is very handy with bug-reports and things of this sort. Also, I can search my agenda files to see if anything like this has happened before, etc. It really helps to be able to do this without having to be online like with many bug-tracking software - which is very helpful when on a commute in the train.

These are just a few things that you would gain with org-mode, but really there is no end to the customization you can do. It is all written in plain-text and controlled with elisp. I like the fact that with this one tool [Emacs] I can do so many things, so it is worth the time to know the tool well. It also can expand to do whatever task I need to do. The plain-text format makes it possible to even employ outside tools, such as sed and awk, if I am not inspired in elisp at the moment. To do all the things that I do in Emacs would require learning several different tools each with their own document format and key-bindings and wouldn't even necessarily be adaptable to the task at hand.

On the other hand, you do have the obligatory xkcd:

https://xkcd.com/1205/

Re: Org Mode for Emacs – Your Life in Plain Text

#62
Tried to switch to vim/Emacs repeatedly for more than 10 years, never understood the reason of cryptic commands and shortcuts, that was OK 25 years ago, but since then, keyboards got, say, _arrow keys_. Alt-F is "forward one word"? OK, can be memorized, but there is Alt-right arrow for everything else, much more intuitive.

UI matters. Shortcuts and their relationships are part of the UI, and it's horrible for Emacs. It's the same as some people saying "syntax doesn't matter in programming languages", to which I say BS.

Re: Org Mode for Emacs – Your Life in Plain Text

#63

Tried to switch to vim/Emacs repeatedly for more than 10 years, never understood the reason of cryptic commands and shortcuts, that was OK 25 years ago, but since then, keyboards got, say, _arrow keys_. Alt-F is "forward one word"? OK, can be memorized, but there is Alt-right arrow for everything else, much more intuitive. UI matters. Shortcuts and their relationships are part of the UI, and it's horrible for Emacs.…

Vim and Emacs are two different beasts. My personal setup is using Spacemacs, after having my own clumsy customization on both Vim and Emacs. So now I use Emacs with Vim keybindings.

Spacemacs has been suggested many many times in similar threads. I also suggest you give it a try, as its keybindings are very user friendly and documentation is good.

And per your specific example: Vim has a great system to move around text. You just need to get used to it, but basically, you'll be executing "motions", where you're telling the software exactly what you want to do using very few keypresses. Anything can look cryptic if you don't take the time to learn it! Trust us, it's worth your while! You are truly limiting yourself by only using arrow keys. You'll quickly stop using them at all in Vim, while gaining productivity quickly. And if you don't like Vim per se, some software supports Vim keybindings.

Re: Org Mode for Emacs – Your Life in Plain Text

#64
post #37

"plus it's completely platform agnostic and future proof, because it's just text" This always irks me a bit. Being text doesn't mean that there is no file format and internal semantics to it. Sure, it's easy to hack together some transformation in Perl, but "plus it's completely platform agnostic and future proof, because it's just binary" would be correct, as well. As long as the format is documented.

I think an appropriate analogy would be the difference between the source-code and the binary of an application. In theory, the binary would be agnostic and future-proof given the documentation of the format, but the source-code is much more readable by humans and compilers of other platforms, which would make it more future-proof.

Re: Org Mode for Emacs – Your Life in Plain Text

#66
post #53
post #47

Earlier quoted context omitted.

This is exactly why I moved from Evernote to org-mode. I've been a paying user for years with thousands of notes - also important legal documents. Right now, the experience was pretty good, but how will it be in 10-40 years? I'm not going to store everything on paper, as well, just to make sure. The org-mode experience is better, yet totally future proof, because it's just flat text files.

How did you handle importing binary data you had in Evernote into org-mode? I've got a bunch of PDFs, images and other non-text data in my Evernote workbooks that I'd need to take care of.

I used to keep lots of stuff in Evernote, and when I switched to org-mode, I did an HTML export from Evernote and then wrote an awful Python script to convert the HTML to org-mode. I'm pretty sure all the binary data appears as links in the exported html.

Re: Org Mode for Emacs – Your Life in Plain Text

#67

Tried to switch to vim/Emacs repeatedly for more than 10 years, never understood the reason of cryptic commands and shortcuts, that was OK 25 years ago, but since then, keyboards got, say, _arrow keys_. Alt-F is "forward one word"? OK, can be memorized, but there is Alt-right arrow for everything else, much more intuitive. UI matters. Shortcuts and their relationships are part of the UI, and it's horrible for Emacs.…

Arrow keys are the worst ergonomically. You need to be able to stay as close as possible to the home position. When my RSI got really bad I noticed how bad it can be to keep reaching for the arrow keys.

Re: Org Mode for Emacs – Your Life in Plain Text

#68
post #31

I've switched to Emacs after 14 years of Vim (with the required evangelism^^). Initially it was because of Clojure, but then I tried org-mode. Now my GTD Setup (formerly Things.app), Notes for everything (formerly Evernote), Time Tracking (formerly Minco), Pomodoro Technique as well as writing slide decks (I'm a part time lecturer, so I do that a lot) are _all_ within org-mode. And not, because it's hipster, but beca…

For anyone trying not to make the same terrible mistake, you have vim-orgmode: https://github.com/jceb/vim-orgmode

Re: Org Mode for Emacs – Your Life in Plain Text

#69
post #65

Have been using org-mode for a few years now but never reached the point where I would feel comfortable. I can't find a good way to organize my files, there are at least 20-30 files in my Dropbox, some are empty, some contain random notes.

Have you tried org-capture? It's nice to have the files be accessible through keyboard shortcuts, but it has the additional benefit that the potential places I could drop some random note are specified in advance, forcing me to maintain some level of organization.
Post reply on HN