Skip to content

Commit 40a8d84

Browse files
committed
Fix issues with org-anki
This patch: - updates the local deps - adds an advice from: louietan/anki-editor#76 to address the problem when pushing notes to Anki (notes were successfully pushed, however we didn't get the id of the note, which is necessary to be able to later update the note
1 parent 4d538f7 commit 40a8d84

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

custom-settings.el

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
;; If there is more than one, they won't work right.
66
'(package-selected-packages
77
'(rustic lsp-ui lsp-mode org-roam-ui org-roam web-mode company tide git-gutter-fringe flycheck-plantuml plantuml-mode yasnippet-snippets yasnippet vs-light-theme anki-editor smartparens geiser-mit geiser unfill perspective ox-hugo magit multiple-cursors transpose-frame markdown-mode yaml-mode expand-region neotree counsel smex swiper ivy undo-tree projectile auto-compile use-package))
8-
'(python-shell-interpreter "python3"))
8+
'(python-shell-interpreter "python3")
9+
'(warning-suppress-types '((comp))))
910
(custom-set-faces
1011
;; custom-set-faces was added by Custom.
1112
;; If you edit it by hand, you could mess it up, so be careful.

init.el

+7
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,13 @@
387387
;; TODO Implement function where you push the "Dispatch Shelf" tree and refile the entries under the Exported tree
388388

389389

390+
(defun anki-editor--anki-connect-invoke! (orig-fun &rest args)
391+
(let ((request--curl-callback
392+
(lambda (proc event) (request--curl-callback "localhost" proc event))))
393+
(apply orig-fun args)))
394+
395+
(advice-add 'anki-editor--anki-connect-invoke :around #'anki-editor--anki-connect-invoke!)
396+
390397
;; Allow Emacs to access content from clipboard.
391398
(setq x-select-enable-clipboard t
392399
x-select-enable-primary t)

0 commit comments

Comments
 (0)