summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--org/jao-org-links.el8
-rw-r--r--org/jao-org-notes.el4
2 files changed, 6 insertions, 6 deletions
diff --git a/org/jao-org-links.el b/org/jao-org-links.el
index ab9b2d6..7d9cb55 100644
--- a/org/jao-org-links.el
+++ b/org/jao-org-links.el
@@ -106,19 +106,19 @@
:store #'jao-org-links--store-pdf-link)
(setq jao-org--sink-dir (file-name-as-directory sink-dir)))
-(defun jao-org--open-other (otp)
- (let ((rxs ))))
+;;;###autoload
+(defvar jao-org-doc-notes-dir "notes/books")
;;;###autoload
(defun jao-org-org-to-pdf-file ()
- (replace-regexp-in-string "/notes/\\(.+\\)\\.org$"
+ (replace-regexp-in-string (format "/%s/\\(.+\\)\\.org$" jao-org-doc-notes-dir)
"/doc/\\1.org"
buffer-file-name))
;;;###autoload
(defun jao-org-pdf-to-org-file (&optional file-name)
(replace-regexp-in-string "/doc/\\(.+\\)\\.pdf$"
- "/notes/\\1.org"
+ (format "/%s/\\1.org" jao-org-doc-notes-dir)
(or file-name buffer-file-name)))
;;;###autoload
diff --git a/org/jao-org-notes.el b/org/jao-org-notes.el
index ca95511..3e9abbb 100644
--- a/org/jao-org-notes.el
+++ b/org/jao-org-notes.el
@@ -1,6 +1,6 @@
;;; jao-org-notes.el --- A simple system for org note taking -*- lexical-binding: t; -*-
-;; Copyright (C) 2020 jao
+;; Copyright (C) 2020, 2021 jao
;; Author: jao <mail@jao.io>
;; Keywords: tools
@@ -73,7 +73,7 @@
;;;###autoload
(defun jao-org-notes-backlinks ()
(interactive)
- (counsel-ag (buffer-name) jao-org-notes-dir))
+ (consult-ripgrep jao-org-notes-dir (regexp-quote (buffer-name))))
(provide 'jao-org-notes)
;;; jao-org-notes.el ends here