by eadmund · 8y ago · 0 comments
https://github.com/Wilfred/ag.el
Read find-grep exclusion patterns from a .findignore file: https://emacs.stackexchange.com/a/19038/6682
I've tried a few mobile org-mode clients and been universally disappointed. I'm increasingly convinced that the right path forward is to give Emacs an Android port (it's not that hard) and let the mobile org just be the mainline org, perhaps with a layer of android.view.View widgets (orchestrated from lisp) as an interface.
I would not be where I am without Orgzly. Yes, I wish it was more complete. But given the very limited manpower behind it, it is excellent.
It's also better than any other similar app I've tried, even non-Org ones. So it's the best note-taking/todo/planner app for Android, and then the fact that it uses Org files behind the scenes is just a great bonus.
[1] https://news.utexas.edu/2017/06/26/the-mere-presence-of-your...
I find that for a true productivity tool, I'm fine relying on my desktop & laptop. I'm actually dialling back what I use my phone for, simply because I can't trust either of the major mobile OSes to respect me & my privacy. It would be awesome to have all of org available on a phone though; you're not wrong at all there.
I would kill for an emacs which makes sense on mobile, but I've not given enough thought to it to imagine what would make sense. Emacs without the key chords would be still powerful but also odd.
Android will kill applications pretty indiscriminately, so your Termux session persistence isn't good.
Terminal performance is poor, especially on scrollback, for some reason.
I've bumped into numerous SSH issues.
My general preference would be for a hybrid tablet/laptop system, running Linux, rather than Android (or iOS). We may eventually get there.
The other thing tablet formats are good for is reading electronic document formats, with an 8" or better tablet size. Though a large eInk device might be better there (again, ideally with shell capabilities).
There are a few different android apps for the phone (I think they are Dropbox based) though I don't use any.
Magit is my go to tool, I only use command line to quickly switch branches sometimes or for non-standard things.
Things I love about Magit:
- CHUNKING .. staging chunks or unstaging chunks is so easy (my favorite feature)
- General overview of information
- diffs, rebases, etc
- It's really fast when you learn the key chords
Other thing I use for Git:
- Command line (if I'm in command line and need to change a branch, might as well do it there)
- Tig (Log is fine in Magit too, just old habbits)
For example to stage things you can just tap ‘s’ while running your cursor down a list of changed lines/files. To commit, it’s just ‘c c’, and you’re in an editor, in a markdown-like mode, with hard wrapping lines at a good default.
Amending previous commits is also very easy, and there are some quality of life abstractions involving branches which I’ve found very useful.
But, ultimately, it’s all the same stuff. If you have a good system with Gitx at the moment (and not much of an interest in Emacs), I wouldn’t worry about it.
I was going to do my blog entirely with org-mode+org-publish, but it spits out a mess of HTML and also a small bit of js for some reason, so I'm just writing html directly myself now.
I don't really find writing html myself all that annoying or anything, but it'd be nice if I could get org to generate really clean/simple HTML for me that I could then write a small script to parse and wrap in divs I've defined for styling.
If tweaking those is not enough for you, you can write your own HTML export. You wouldn't have to parse Org syntax: you'd receive the Org markup already parsed into a nested list structure. If you don't use many Org features, writing an Org backend that supports only those probably isn't that much work. And you'd have ox-html.el to base your own backend on.
On my site (https://two-wrongs.com/) there is very little left of the original HTML. I'll see tomorrow if I can dig up the Lisp code I wrote for it.
The HTML export back-end includes a compact default style in each exported HTML file. To override the default style with another style, use these keywords in the Org file. They will replace the global defaults the HTML exporter uses.
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="style1.css" /> #+HTML_HEAD_EXTRA: <link rel="alternate stylesheet" type="text/css" href="style2.css" />
To just turn off the default style, customize org-html-head-include-default-style variable, or use this option line in the Org file.
#+OPTIONS: html-style:nil
After a bit of googling, I also found an email[1] on the mailing list asking for more or less exactly that, but things don't seem to have gotten far.
I've been thinking about adapting the existing HTML export for such an XML format, but I really haven't had the time for it. :-/
[1]: https://lists.gnu.org/archive/html/emacs-orgmode/2009-08/msg...
If you use org-mode without the need to extract such specific information (and are only interested in generating a document), pandoc might of course be a good way to go.
Edit: ...or maybe there even is a hack to identify and extract things like timestamps anyway. I didn't look into it that much.
Few examples:
1. ox-hugo documentation site from one file[1], source[2]
2. My blog[3]
3. ox-hugo test site (300+ test pages and counting)[4]
[1]: https://ox-hugo.scripter.co/ [2]: https://github.com/kaushalmodi/ox-hugo/raw/master/doc/ox-hug... [3]: https://scripter.co/ [4]: https://ox-hugo.scripter.co/test/
The JS is for interacting with tables, if I'm not wrong.
[1]: https://www.reddit.com/r/emacs/comments/809xwx/how_to_get_pl...
Do you want to do something much more complicated/simple than this?
A general-purpose markup language like XML would be an ideal intermediate export format; XSLT can basically emit anything.
M-x magit
M-x profiler-report
You can accomplish a surprising amount of optimisation after seeing what it is that takes time.
Notmuch is like the best of the newsgroup and email models. It has a great threaded view, tagging and filtering are easy, but it still makes everything very easy to find when you need it.
Also in combination with w3m it does a really good job at rendering HTML emails in plain text. Even those with tables and other layout tend to be rendered very accurately within the constraints of a fixed font plain text view.