Live data from Hacker News

Emacs org-mode examples and cookbook

ehneilsen.net

121–130 of 166 posts

Re: Emacs org-mode examples and cookbook

#121
post #119

I've been trying for a while to understand what org-mode gives you. I saw Dominik's tech talk at Google, and Bieber's discussion on dropping vim with emacs. I really like the approach taken in this article, showing some of the language features. IIUC, what org-mode provides you is: 1. a (markdown-like) lightweight document markup language, with lots of syntax hooks ("#+") for different tools. 2. some (even lighter, i…

You are very right that other lightweight markup languages could provide syntax for everything that org-mode does. But what would possibly interpret that syntax?

The fact that org-mode is tied to Emacs is both its weakness but also its strength. By sitting on the Emacs interpreter, org-mode imposes no limits to what you can achieve. The synergy with other Emacs packages is enormous.

You also forgot to mention one of the coolest features of Org: exporting your documents to whatever format you may want, e.g. html, latex, markdown, odt, reveal.js, - and it's possible to hack the export to fit your needs usually with modest effort. Here's an example of workflow to collaborate with Word users, for example: https://lists.gnu.org/archive/html/emacs-orgmode/2015-06/msg...

And here a recent blog post on exporting org to jupyter notebooks: http://kitchingroup.cheme.cmu.edu/blog/2017/01/21/Exporting-...

Re: Emacs org-mode examples and cookbook

#122
post #51

As a complement on how to use Org mode for ops: - http://www.howardism.org/Technical/Emacs/literate-devops.htm... (Literate DevOps) - https://vincent.bernat.im/en/blog/2017-netops-org-mode ("same" for NetOps, I am the author of this one)

Howard's YouTube video is really nice too: https://www.youtube.com/watch?v=dljNabciEGg

Re: Emacs org-mode examples and cookbook

#123
post #110

Earlier quoted context omitted.

There is also https://github.com/gregsexton/ob-ipython which integrates a Jupyter kernel into org-mode's #+BEGIN_SRC/#+END_SRC blocks. It can display the results of the execution of such blocks much like Jupyter Notebook.

And to make it even better, export an org document to a notebook: http://kitchingroup.cheme.cmu.edu/blog/2017/01/21/Exporting-...

Open source: interoperability is magic

Re: Emacs org-mode examples and cookbook

#124
post #121
post #119

I've been trying for a while to understand what org-mode gives you. I saw Dominik's tech talk at Google, and Bieber's discussion on dropping vim with emacs. I really like the approach taken in this article, showing some of the language features. IIUC, what org-mode provides you is: 1. a (markdown-like) lightweight document markup language, with lots of syntax hooks ("#+") for different tools. 2. some (even lighter, i…

You are very right that other lightweight markup languages could provide syntax for everything that org-mode does. But what would possibly interpret that syntax? The fact that org-mode is tied to Emacs is both its weakness but also its strength. By sitting on the Emacs interpreter, org-mode imposes no limits to what you can achieve. The synergy with other Emacs packages is enormous. You also forgot to mention one of…

I can see some of the benefits of the integration: emacs can do the horizontal search for TODO entries, create an agenda, let you edit it, and move the changes to the right .org file. Still, I'd argue that the file is the important thing here, not the tool to manage it. I should be able to edit .org files with any other tool (e.g. an android app that eventually modifies a .org file in github), and then do re-process the file.

Other languages also allow exporting to other formats. I use md-to-pdf all the time, and it works well. Integrating the use of other tools in the export process should be independent of the usage of emacs.

Re: Emacs org-mode examples and cookbook

#125
post #63
post #4

It's worth noting a great Android client for org-mode has been recently open sourced: http://www.orgzly.com/ https://github.com/orgzly https://f-droid.org/wiki/page/com.orgzly It was a little annoyance we did not have anything as good as this before.

The only thing I can't stand is that you can schedule things and deadlines but no alarms or notifications go off.

You need to set up a hook for the notification you prefer: https://emacs.stackexchange.com/questions/3844/good-methods-...

Tons of options: shell scripts, dbus.el (since 23)/notifications.el (since 24), write(1)/wall(1) for terminals, etc

Re: Emacs org-mode examples and cookbook

#126
post #124
post #121

Earlier quoted context omitted.

You are very right that other lightweight markup languages could provide syntax for everything that org-mode does. But what would possibly interpret that syntax? The fact that org-mode is tied to Emacs is both its weakness but also its strength. By sitting on the Emacs interpreter, org-mode imposes no limits to what you can achieve. The synergy with other Emacs packages is enormous. You also forgot to mention one of…

I can see some of the benefits of the integration: emacs can do the horizontal search for TODO entries, create an agenda, let you edit it, and move the changes to the right .org file. Still, I'd argue that the file is the important thing here, not the tool to manage it. I should be able to edit .org files with any other tool (e.g. an android app that eventually modifies a .org file in github), and then do re-process…

There is lots of functionality you can't do without some kind of non-ordinary editor functionality. The table functionality comes to mind, as does the time management functionality. But, really org-mode's syntax is simple and close enough to MD that it's very easy to implement in other editors. There is a vim package and even an Intellij package. But I challenge you to start implementing the non-syntax parts in another editor and you will quickly see that there is a lot of it.

Re: Emacs org-mode examples and cookbook

#127

Earlier quoted context omitted.

An even better Android client for org-mode: 1. Install the Termux app. 2. Install the Termux API app. 3. Install the Termux api CLI tools via apt. You now have access to clipboard. 4. Install Emacs within termux. Termux offers an apt-based package management system, and a substantial, though partial, set of Debian-based packages. (592 packages as I write this -- a full Debian archive is >60k packages now.) There are…

How's the speed? I mean, I use use-package and a bunch of init file optimizations to get Emacs startup time as low as possible, but I can't imagine it being tolerable on my phone. And opening the agenda across my standard set of files would probably be awful.

That is a really funny question. I started using Emacs a relative short time ago on what I still consider a fast machine - 2001 on a dual-processor Pentium Pro at 200MHz with 192MiB of RAM. My phone is one of the lowest-end Android models available today and has a quad-core 1.2 GHz ARM processor and 1GiB of memory. Emacs has not really bloated like other applications over time, it just started out with a lot more feature than workstations in the 1980s (https://en.wikipedia.org/wiki/3M_computer) could handle.

Re: Emacs org-mode examples and cookbook

#128
post #40

Every time I see something about org-mode posted, I get mad FOMO and decide to re-dedicate my life to learning emacs and everything it has to offer. Then a little while later I inevitably drift back to vim. It's getting to the point where I need to just ignore cool stuff like this post in order to get on with my life.

I split the difference with Emacs and Evil Mode. It's not at all the same as using Vim, but at least I get org mode and Vim-like modal editing.

I'm also using Emacs and Evil mode as well. It really is very close to vanilla Vim. There are probably only 3 major issues I have. First is that there is no emacs way that I know of to duplicate the work flow for opening files in vanilla Vim. I personally hate control-P. Managing buffers is also a bit different because the paths are not searchable in the buffer names. I'm using ido to help with this, but it has some quirks that I don't really like so well. My biggest problem is the difference in the way the undo buffer works. There are a couple of scenarios where a single undo will back up before the last press of escape. I think there are some bugs for these issues so I'm hopeful that they will be fixed (or have been fixed already -- I haven't updated in a while).

It took me quite a while to set things up, but I use it every day as my main editor and I'm quite happy with it. I can also easily jump back into Vim if I'm pairing with a Vim person, which was one of the things I was concerned about.

Re: Emacs org-mode examples and cookbook

#129
post #37

Earlier quoted context omitted.

Why use electron? emacs is already available. And it includes a pretty great news reader, mail reader, git interface, source-control interface, a thousand other nifty things — oh, yeah, and a text editor too.

Even if they should , not everyone needs to, or is inclined to learn and live in emacs. Thinking especially of technically inclined folks (or managers, etc) who don't really write code or have any reason to live in an editor, but get benefit from all the loads of other nifty things - just without the cognitive overhead of stuff like tweaking config files, learning all the keybindings, managing buffers and the like- a…

Why do people think that Emacs is impossible for non-programmers to use?

"He wrote a version of Emacs in Multics MacLisp, and he wrote his commands in MacLisp in a straightforward fashion. The editor itself was written entirely in Lisp. Multics Emacs proved to be a great success — programming new editing commands was so convenient that even the secretaries in his office started learning how to use it. They used a manual someone had written which showed how to extend Emacs, but didn't say it was a programming. So the secretaries, who believed they couldn't do programming, weren't scared off. They read the manual, discovered they could do useful things and they learned to program."

https://www.gnu.org/gnu/rms-lisp.en.html

"I'm a non-technical user, non-programmer, and I started using it because of org-mode."

https://groups.google.com/d/msg/gnu.emacs.help/QU6xN34ollo/K...

"Shel wrote Mailman in Lisp. Emacs-Lisp… Mailman was the Customer Service customer-email processing application for … four, five years? A long time, anyway. It was written in Emacs. Everyone loved it.

People still love it. To this very day, I still have to listen to long stories from our non-technical folks about how much they miss Mailman. I'm not shitting you. Last Christmas I was at an Amazon party, some party I have no idea how I got invited to, filled with business people, all of them much prettier and more charming than me and the folks I work with here in the Furnace, the Boiler Room of Amazon. Four young women found out I was in Customer Service, cornered me, and talked for fifteen minutes about how much they missed Mailman and Emacs, and how Arizona (the JSP replacement we'd spent years developing) still just wasn't doing it for them."

http://tess.oconnor.cx/2006/03/quality-without-a-name

Re: Emacs org-mode examples and cookbook

#130
post #53

Earlier quoted context omitted.

I really want to like Jupyter. But taking notes or working through things in a textbox element just doesn't cut it. If I could build my notebooks in emacs... But then org mode has most of the same functionality.

My biggest Jupyter complaint is that, at least by default, produces files that are pretty hard to revision meaningfully in git.

The jupyter team are aware of, but not currently fixing, this issue. I use the excellently simple nbstripout as git hook and it silently removes everything but code.
Post reply on HN