Artsiom K

Results 19 comments of Artsiom K

>two options Well, there might be more of course, because it is emacs. As always...

Stable version of a function for inserting prop-line in howm from repo mentioned before. For now it is interactive only. ```elisp (defun howm-insert-prop-line () "Activate major mode and modify the...

` sed "s:^\x2A := :" -i */*/*.org` — sed BRE to change only first level of org headings `*` to howm heading `=` BTW: In asciidoc heading would start with...

Memory consuming python3 script to add prop-line specifying org major mode to every file in howm that exists. ```python from pathlib import Path files = list(Path(".").rglob("*.org")) for el in files:...

``` lisp (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...

> Is there a reason to make it specific to howm? Yes, it is. It calls `(howm-mode)` two times, so when major mode will be enabled it also enables howm...

>But of course I can greate general version with broader use case. That would be true when I will find how I can preserve enabled minor modes across changing of...

How to become such experienced programmer as you ? Thanks for the generic version of code.

> I've added a link to it in the Emacs Wiki ("More Tips"). Thanks. > Feel free to reopen it if you still have any problems. Everything is alright by...