mirror of
https://github.com/vale981/emacs-jupyter
synced 2025-03-05 07:41:37 -05:00
Add to CAPF for code block completion when org-mode is enabled
This commit is contained in:
parent
f0fe7ff5e8
commit
6e59813dc4
1 changed files with 6 additions and 0 deletions
|
@ -207,6 +207,12 @@ METADATA has the same meaning as in
|
|||
(code (substring val 0 (1- (length val)))))
|
||||
(list code (min (- (point) beg) (length code))))))
|
||||
|
||||
(defun jupyter-org-enable-completion ()
|
||||
"Enable autocompletion in Jupyter source code blocks."
|
||||
(add-hook 'completion-at-point-functions 'jupyter-completion-at-point nil t))
|
||||
|
||||
(add-hook 'org-mode-hook 'jupyter-org-enable-completion)
|
||||
|
||||
;;; Inserting results
|
||||
|
||||
(defun jupyter-org-image-file-name (data ext)
|
||||
|
|
Loading…
Add table
Reference in a new issue