From 0f9975a7bf92c43afbbaabe81a51a64bc12eb72b Mon Sep 17 00:00:00 2001 From: Lucien Cartier-Tilet Date: Sat, 11 Jul 2020 18:06:35 +0200 Subject: [PATCH] Better regex for generating custom org IDs --- org/config/spacemacs.org | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org/config/spacemacs.org b/org/config/spacemacs.org index 3e216d5..85192fe 100644 --- a/org/config/spacemacs.org +++ b/org/config/spacemacs.org @@ -2279,7 +2279,7 @@ (org-with-point-at pom (let* ((orgpath (mapconcat #'identity (org-get-outline-path) "-")) (heading (replace-regexp-in-string - "/" "-" + "/\\|~" "" (replace-regexp-in-string " " "_" (if (string= orgpath "") (org-get-heading t t t t)