Skip to content

Instantly share code, notes, and snippets.

View vherrmann's full-sized avatar

Valentin Herrmann vherrmann

  • Deutschland
View GitHub Profile
@vherrmann
vherrmann / config.el
Created January 3, 2026 22:27
Editing org-attach attachments at point
(cl-defun iko/run-process-async (name program &key stdin args on-exit)
"Run PROGRAM asynchronously with ARGS, outputting to BUFFER-NAME."
(with-current-buffer (get-buffer-create (concat "*" name "*"))
(let ((b (current-buffer))
(p (apply #'start-process name (current-buffer) program args)))
(set-process-sentinel
p
(lambda (proc event)
(when (eq (process-status proc) 'exit)
(when on-exit
@vherrmann
vherrmann / config.el
Created January 3, 2026 22:26
Attaching images from the phone in org mode
(cl-defun iko/run-process-async (name program &key stdin args on-exit)
"Run PROGRAM asynchronously with ARGS, outputting to BUFFER-NAME."
(with-current-buffer (get-buffer-create (concat "*" name "*"))
(let ((b (current-buffer))
(p (apply #'start-process name (current-buffer) program args)))
(set-process-sentinel
p
(lambda (proc event)
(when (eq (process-status proc) 'exit)
(when on-exit
@vherrmann
vherrmann / config.el
Created January 3, 2026 22:23
Rescheduling repeating todos in org mode without breaking regular schedule
(defun iko/org-is-static-repeater ()
;; Is this a repeater that uses the current date for rescheduling (.+) or
;; a „static“ repeater that uses the last scheduled date (++)?
(when-let ((repeater (org-get-repeat)))
(not (string-prefix-p ".+" repeater))))
(defun iko/org-entry-put-nil (EPOM PROPERTY VALUE)
(and VALUE (org-entry-put EPOM PROPERTY VALUE)))
(defun iko/org-ts-inactive→active (text)
@vherrmann
vherrmann / doct-org-roam.el
Last active April 21, 2024 00:00 — forked from progfolio/doct-org-roam.el
doct-org-roam.el
;;; doct-org-roam.el --- An org-roam extension for doct
;; Copyright (C) 2020 Nicholas Vollmer
;; Copyright (C) 2022 Valentin Herrmann
;; Author: Nicholas Vollmer <[email protected]>
;; URL: https://github.com/vherrmann/doct-org-roam
;; Created: July 27, 2020
;; Keywords: org, org-roam, convenience
;; Package-Requires: ((emacs "26.1"))
;; Version: 0.0.0