Live data from Hacker News

Emacs org-mode examples and cookbook

ehneilsen.net

151–160 of 166 posts

Re: Emacs org-mode examples and cookbook

#151
It amazes me how powerful org-mode is. I saw that Hugo has started supporting org-mode, together with Caddy server and couple of extensions one could create awesome web based knowledge-base, all with a minimal stack.

Re: Emacs org-mode examples and cookbook

#152
post #35

Earlier quoted context omitted.

I stopped using org-mode for a time after having invested a lot of time in learning all the cool stuff you can do because I felt like it was overkill and I was trying to do too much with it and organizing everything was becoming a chore. If you look at all it can do, it has so many capabilities (outlining, gtd, wiki, blogging, ebook publishing, presentations, time tracking, etc). Recently, I came back to it just to u…

Not sure if it is the same thing, but I find myself sometimes procrastinating by noodling with software features. It isn't the fault of org-mode (or any other software), it is mine, for not being disciplined enough. "Distraction free" apps don't work, because I frequently need to switch windows a lot and need some fancy features. Really, the answer for me is to work on staying focused. (Perhaps a lobotomy would help.…

Someone once said that the trick of being productive is to use emacs as "your operating system", or unproductive if you just end up playing with elisp all day.

Re: Emacs org-mode examples and cookbook

#153
post #111

Earlier quoted context omitted.

I was wondering just a few days ago whether building a nice Mac desktop app or maybe a web app, akin to Ulysses, but for Org file writing/editing, exporting etc. would be a viable idea and whether it could eat some of Markdown's marketshare by not being tied to Emacs, which is why I feel most people don't pick it up. Would that be something the HN crowd would be interested in?

It's way easier for someone to hack up an acceptable new UI for org-mode (whatever that looks like) using the existing underlying Emacs org-mode code/runtime than it is to hack up a new UI and completely replace all the Emacs code & org-mode. You can run Emacs headless, it has C extension support now, your Mac app could start it headless and communicate with it over a socket or as a network process. Multiple Emacs mo…

[deleted]

Re: Emacs org-mode examples and cookbook

#154
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…

For folks that easily get scared by elisp it would be awesome if there was a possibility to use org-mode from Atom or VS Code. That way someone who is a beginner with not a lot free time can try it out with the "support wheels" of a familiar environment.

Re: Emacs org-mode examples and cookbook

#155
post #9
post #7

Earlier quoted context omitted.

Can jupyter do tables and diagrams followed by code snippets in multiple languages?

Yes. You can use cell magic to change the language for each cell and you can display HTML/latex output inline or just mix computations in with markdown. The only problem is that the editor is just a text box with annoying bracket matching instead of Emacs.

Have yet to try it myself, but allegedly you can run a Jupiter notebook inside emacs:

https://github.com/millejoh/emacs-ipython-notebook

Seems the best of both worlds!

Now, is there a elisp notebook (or is it just emacs)?.

Re: Emacs org-mode examples and cookbook

#156
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…

> The synergy with other Emacs packages is enormous.

I've been experimenting toward a modern SQL interaction mode, and an Org buffer makes a brilliant place for output - native handling of tabular data, syntax-highlighted code blocks each with the query that produced a given result, headlines, plenty of place for user-added annotations, built-in export, overall a ton of work that I don't have to do.

Re: Emacs org-mode examples and cookbook

#157
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…

The biggest thing, to me, is Babel: it's a system that lets you combine documentation and code into a single unit, and lets you combine code from many different languages into a single tool for processing. Now, instead of an unintelligible readme with an undocumented handful of scripts, I've actually got real documentation and an entire project basically in a single file.

http://www.jstatsoft.org/v46/i03

I've been thinking of starting a project specifically in org-mode for quite a while.

Re: Emacs org-mode examples and cookbook

#158
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…

I think a fruitful way of looking at what org mode gives you as... a way to pull together many organizational aspects of your life into one system, as opposed to having 5 different apps that have boundaries between them.

Doing an outline for that presentation next week, but need to put it down now, and don't want to forget about it? Schedule a reminder or due date right there in the document and it'll show up in your agenda. No switching over to a reminder app. Want to log time spent on it? Do it right there. In the middle of all that and get a phone call with a new task? You're a hotkey away from recording that info without leaving what you're working on.

For me it's the integration of all things organizational that makes it compelling.

Re: Emacs org-mode examples and cookbook

#159
post #120

Shameless plug: http://github.com/alphapapa/helm-org-rifle Makes it very easy and fast to search through org files.

By looking at the GIF in helm-org-rifle I remembered reading about variable-pitch fonts on (what I believe to be) your blog. Great content in there, thanks a lot for sharing!

Don't actually have a blog, but I've been thinking about one for some Emacs-related stuff (though it would be feeble compared to the Emacs-related blogs already out there!). I assume you know about Planet Emacs, but if not, planet.emacsen.org. :)

Anyway, about the fonts: I use monospace fonts for code, but I like proportional fonts for Org documents, so I have this in my org-mode hook:

    (buffer-face-set :family (face-attribute 'variable-pitch :family))
Then I use monospace in Org code blocks like this:

    (set-face-font 'org-block-background frame-font)
You could also set that one in the customize interface.

Re: Emacs org-mode examples and cookbook

#160

Earlier quoted context omitted.

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 fea…

Sad but true, I guess, haha. My Emacs process currently has a RSS of 201 MB, and that's just with my everyday packages loaded. It's amazing to think about the Lisp Machines...
Post reply on HN