diff options
author | Oscar Najera <hi@oscarnajera.com> | 2023-12-07 11:24:09 +0100 |
---|---|---|
committer | Oscar Najera <hi@oscarnajera.com> | 2024-01-13 02:27:42 +0100 |
commit | 2d9291a7f24268ce58a3d98a4ad9a16a05665df0 (patch) | |
tree | f3f60fbf2e9345d43f25daf842126a25b834f389 /scratch | |
parent | a7c7d9f0c29b7cb564d6eda2e6b11d3cdad2d351 (diff) | |
download | dotfiles-2d9291a7f24268ce58a3d98a4ad9a16a05665df0.tar.gz dotfiles-2d9291a7f24268ce58a3d98a4ad9a16a05665df0.tar.bz2 dotfiles-2d9291a7f24268ce58a3d98a4ad9a16a05665df0.zip |
run roam semantic search as shepherd daemon
Diffstat (limited to 'scratch')
-rw-r--r-- | scratch/semgrep/semgrep.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scratch/semgrep/semgrep.el b/scratch/semgrep/semgrep.el index 37ba800..a93803b 100644 --- a/scratch/semgrep/semgrep.el +++ b/scratch/semgrep/semgrep.el @@ -67,7 +67,7 @@ (org-element-map (org-element-parse-buffer) 'paragraph - (semgrep--prepare-paragraph (org-id-get (point-min)))) + (semgrep--prepare-paragraph (org-id-get (point-min) 'create))) (cl-coerce it 'vector) ;; (json-serialize it) ;; (f-write it 'utf-8 "/tmp/out.json") @@ -123,7 +123,7 @@ (format "* [[file:%s::%d][%s]]\n" file pos title) "- Distance :: " (number-to-string d) "\n" paragraph ?\n) - (fill-paragraph)))) + (org-fill-paragraph)))) entry-distances entry-document entry-metadatas))) distances documents metadatas) (goto-char (point-min)) |