Hacker News new | past | comments | ask | show | jobs | submit | artsi0m's comments login

> How does this deal with searches that, over time, can change to return 0 or 2+ results?

You can put more than one search link in currently edited note, than test all of them and at one point you will learn how to formulate search query so that you would recite yourself exactly as in that note that you want to see just now.

Also you would find more suitable titles while being in this process, but it wouldn't be for long.


Date line could be put everywhere you want or entirely deleted. You are absolutely free in this aspect of usage of howm.


> lab notebook

I write down my uni's lectures in howm using org as markup, so maybe yes, probably.

howm has two types of links, both are search for all your data it howm actually, but the second type (<<< links) work as a tag, that would be highlighted everywhere.

I thing creating templates can be done with one or another emacs snippets packages. Or just by your own elisp.


Mine is much simpler

(use-package howm)

Although I am the one who use it with org-mode too.

I've done it using prop-line feature of emacs and my own interactive, for today it is only interactive, function howm-insert-prop-line:

    (defun howm-insert-prop-line ()
  "Activate major mode and modify the file so that this mode is activated
  automatically the next time it is opened"
      (interactive)
      (howm-mode)
      (let*
   ((modes (mapcar #'cdr auto-mode-alist))
    (mode-name (completing-read "Choose major mode: " modes))
    (mode (intern-soft mode-name)))
 (unless (or (null mode)
     (eq mode major-mode))
   (funcall mode)
   (howm-mode)
   (add-file-local-variable-prop-line
    'mode (intern (string-trim-right mode-name "-mode\\'"))))))

It is in github repo, too although it is not yet finished:

https://github.com/artsi0m/howm-use-any-markup

My problem is that I can't combine well nested interactive+let or let+interactive, so it is only as interactive function for now.


Interesting idea.

I guess one alternative approach would be to defadvice “howm-create” to prompt for a major mode, e.g. by let-binding the “howm-template” variable to contain “-- mode: … --“ on top and prompt the user for a mode?


Thanks, this sound reasonable actually.

Maybe, I would think about implementing it in this way.

Actually I don't really want to create a separate emacs package, but rather merge my code with main howm repo at some point, when it would be good enough.

Creating your own package would be acceptable alternative to this, though.

I also should add, that I can add enabling external grep part to my short howm config, but it seems to slow down howm, rather speed it up, when using it on windows.


Nope, it suggest to use howm with markdown only, while when using emacs prop-line feature, you can use it with any markup.


artsi0m, is there a reason to use prop-line, when howm already supports org by adding a hook to it?

the reason I'm asking is I've been trying to make org-mode automatically work in howm preview buffer howmC, but it still displays as plain text until I hit RET on the note...

was wondering if you maybe found a way around it via prop-line somehow? I've seen your github, where you mention the "# -- mode: org --", but whether I use that or not in .org files - makes no difference to preview buffer


So, because you disagree with one nitpicky detail, you believe a blog post laying out the history and features and uses of howm is inferior to a landing page which contains nothing but 2 links, which themselves contain nothing useful except perhaps 3 or 4 links deep there might finally be something which explains to a HNer what howm is and why they might ever care about it? Nope.


Sorry, of course no. But there is much better introduction blog posts on this topic in my opinion.

I liked this one: https://baty.blog/2024/03/the-emacs-howm-package-for-notes


Terry referenced the joke about web browsers, saying that as the most people use internet explorer to download firefox, he used Ubuntu with VMWare to run Temple OS. https://iv.ggtyler.dev/watch?v=IXhmu1aQSOY


I use VPN for bypassing blocks created either by government of the country I currently live in or established as a sanctions by another governments.

I set up wireguard and unbound on VPS in Amsterdam and share with 10-15 people by posting wireguard config in private telegram channel.

Ironically enough, but I block porn access using StevenBlack hosts converted into Unbound config by awk script, so porhhub dot com will return REFUSE dns response from unbound.

I know, that is not impressive idea of how to utilize computing power of the VPS, but I also used it for running tor snowflake (disabled because of eating too much ram), running tor obfs4_proxy (would also eat much ram, but that can be adjusted, I don't remember clearly why I disabled it at one point) and I used it as a server for Postgres that I tried to use for uni's coursework on databases.

Maybe I am too lazy to setup tools like zapret for bypassing deep packet inspection locally on my laptop or on router. But still there should be a ton of things that can be done on the same vps.


term-lisp is a language for term list processing with first-class pattern matching, inspired by Pie, Haskel, Agda et al



There is also a Google (and more) translate client written in AWK

https://github.com/soimort/translate-shell


I found an awesome-awk[1] page on github and is seems to be a little empty. Maybe we should contribute to it and bring some examples like subj of this HN post or ahrf[2], dedicated markup language for static site generators based on awk. I've started with adding one true awk and bioawk implementations.

[1]: https://github.com/freznicek/awesome-awk [2]: https://github.com/Ypnose/ahrf


I would like to share opml, but at the same time I would like to have some of my subscription staying private. Would be cool to have some elisp or shell + xmlstarlet script to export only things that I would feel normal to share.


Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: