From a3ef78c8ff9b173023bfac5801ed8d9ad0222285 Mon Sep 17 00:00:00 2001 From: Riyyi Date: Fri, 14 May 2021 12:48:58 +0200 Subject: [PATCH] Add regexp for org-roam title slugs --- .config/emacs/config.org | 1 + 1 file changed, 1 insertion(+) diff --git a/.config/emacs/config.org b/.config/emacs/config.org index fa91e4f..007897f 100644 --- a/.config/emacs/config.org +++ b/.config/emacs/config.org @@ -1382,6 +1382,7 @@ If point is on: "Convert TITLE to a filename-suitable slug, strip out common words." (let* ((common-words '("a" "an" "and" "as" "at" "by" "is" "it" "of" "the" "to")) (title (replace-regexp-in-string "\\(c\\+\\+\\)" "cpp" title)) + (title (replace-regexp-in-string "\\(c\\#\\)" "cs" title)) (words (split-string (org-roam--title-to-slug title) "\_"))) (string-join (seq-remove (lambda (element) (member element common-words)) words) "_"))) #+END_SRC