summaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/doc/jao-doc-view.el2
-rw-r--r--lib/doc/jao-org-notes.el2
-rw-r--r--lib/prog/jao-compilation.el2
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/doc/jao-doc-view.el b/lib/doc/jao-doc-view.el
index 95a22a6..4e210f3 100644
--- a/lib/doc/jao-doc-view.el
+++ b/lib/doc/jao-doc-view.el
@@ -61,7 +61,7 @@
(cb (when skip-current (current-buffer))))
(dolist (b (buffer-list))
(with-current-buffer b
- (when-let (fn (and (not (equalp cb b)) (jao-doc-view--is-pdf)))
+ (when-let (fn (and (not (eq cb b)) (jao-doc-view--is-pdf)))
(add-to-list 'docs fn))))
(when (> (length docs) 0)
(jao-doc-view--save-to-file jao-doc-view-session-file docs))))
diff --git a/lib/doc/jao-org-notes.el b/lib/doc/jao-org-notes.el
index 3f6e725..dd8746e 100644
--- a/lib/doc/jao-org-notes.el
+++ b/lib/doc/jao-org-notes.el
@@ -118,7 +118,7 @@
(defun jao-org-notes--template (k)
`(,k "Note" plain (file jao-org-notes-open-or-create)
- "\n- %a"
+ "\n- %a\n %i"
:jump-to-captured t))
;;;###autoload
diff --git a/lib/prog/jao-compilation.el b/lib/prog/jao-compilation.el
index ef303ea..1c8e465 100644
--- a/lib/prog/jao-compilation.el
+++ b/lib/prog/jao-compilation.el
@@ -100,7 +100,7 @@
"Find the root of current file's project and issue a
compilation command"
(interactive)
- (let ((default-directory (jao-compilation-root))
+ (let ((default-directory (or (jao-compilation-root) default-directory))
(compilation-environment (jao-compilation--environment))
(compilation-read-command 'compilation-read-command))
(call-interactively 'compile)))