Skip to content

Commit

Permalink
Fix issues with org-anki
Browse files Browse the repository at this point in the history
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
  • Loading branch information
ermanno committed Sep 24, 2022
1 parent 4d538f7 commit 40a8d84
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion custom-settings.el
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
;; If there is more than one, they won't work right.
'(package-selected-packages
'(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))
'(python-shell-interpreter "python3"))
'(python-shell-interpreter "python3")
'(warning-suppress-types '((comp))))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
Expand Down
7 changes: 7 additions & 0 deletions init.el
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,13 @@
;; TODO Implement function where you push the "Dispatch Shelf" tree and refile the entries under the Exported tree


(defun anki-editor--anki-connect-invoke! (orig-fun &rest args)
(let ((request--curl-callback
(lambda (proc event) (request--curl-callback "localhost" proc event))))
(apply orig-fun args)))

(advice-add 'anki-editor--anki-connect-invoke :around #'anki-editor--anki-connect-invoke!)

;; Allow Emacs to access content from clipboard.
(setq x-select-enable-clipboard t
x-select-enable-primary t)
Expand Down

0 comments on commit 40a8d84

Please sign in to comment.