Hacker News new | ask | show | jobs
by rayiner 1575 days ago
Org Mode is amazing! As an attorney I spend a lot of my time taking notes, tracking moving parts, and working with voluminous PDFs. I've tried a lot of different tools over the years (OneNote, etc.) for this purpose, but they all have serious shortcomings. I used to use Emacs in my previous life as a programmer, but had never used Org Mode before. I've got the following workflow:

- Org Mode (with org-superstar) for taking notes. Everything gets saved into a Microsoft OneDrive for sync between my laptop and desktop machine.

- Org tasks and org-agenda for project planning. Far less disruptive to your train of thought than busting out Microsoft Planner to remind yourself to follow-up on some line of research or whatever.

- pdf-tools for viewing PDFs. It's a bit kludgy (it renders PDF pages to PNGs on the fly because that's what Emacs can display), but it's somehow still less CPU-intensive than Acrobat DC or anything based on PDF.js. PDF-tools has fast incremental search, and a fast occurs mode for finding and highlighting all hits in the file.

- pdfgrep and pdfgrep-mode for searching across PDFs. Hits show up in a grep-mode buffer and you can click to jump to the exact hit. (It uses libpoppler under the hood to confine the search to the PDF text layer and show hits in logical page order rather than PDF file order, which can be arbitrary.)

- org-pdftools for creating links to specific pages of specific PDFs in Org Notes (e.g. noting that the testimony for a particular witness starts on page 758 of some 2,000-page trial transcript).

- Built-in Emacs features (windows, frames, buffers) make it easy to juggle between documents and compare them side-by-side. Emacs Bookmarks make it easy to save your place and jump back to where you left off. It's shocking how many notes tools get this wrong and only let you see one document or attachment at a time.

I'm kicking myself for not having discovered this earlier!

1 comments

Do you have smooth scrolling in Emacs? How do you sync your work with your smartphone?
I use Mitsuharu Yamamoto's emacs-mac-port, which has smooth scrolling: https://bitbucket.org/mituharu/emacs-mac/src/master/README-m.... Due to the way Emacs works, pdf-tools can't do "continuous scroll" mode. This doesn't bother me much because I always have PDFs set to show the whole page anyway.

I don't sync Org notes with my smart phone. But the nice thing about Emacs (compared to most other notes tools) is that file attachments are in your file system. One Drive's sync backend is very good and smooth, so it's easy to grab a PDF if I want to attach it to an email or view it from my phone or tablet.

> Do you have smooth scrolling in Emacs?

Yes, but one of the smooth scrolling modes was too slow for me and I use `pixel-scroll-precision-mode` which requires Emacs 29.

> How do you sync your work with your smartphone?

I use syncthing for this and Orgzly, emacs in termux, and organice.

I bet most would prefer and could get away with just using organice.

Orgzly work good enough with nextcloud/WebDav for me. Possibly easier to set up than syncthing for non-techies.
Last time I checked organice didn't support offline editing on mobile. If that worked it would likely also be my weapon of choice!
Looks like it still doesn't:

https://github.com/200ok-ch/organice/issues/730

You might be able to run something with WebDAV support and use that?

Maybe sabre or caddy plus WebDAV plugin?