mirror of
https://github.com/vale981/emacs-ipython-notebook
synced 2025-03-06 01:21:38 -05:00
Add guard to allow for links in older org-mode versions
This commit is contained in:
parent
80fc8b1f7d
commit
68cc6f59b0
1 changed files with 3 additions and 2 deletions
|
@ -102,8 +102,9 @@ node `(org) External links' and Info node `(org) Search options'"
|
|||
;;;###autoload
|
||||
(eval-after-load "org"
|
||||
'(progn
|
||||
(org-link-set-parameters "ipynb" :follow #'ein:org-open)
|
||||
;;(org-add-link-type "ipynb" :follow 'ein:org-open)
|
||||
(if (fboundp 'org-link-set-parameters)
|
||||
(org-link-set-parameters "ipynb" :follow #'ein:org-open)
|
||||
(org-add-link-type "ipynb" :follow 'ein:org-open))
|
||||
(add-hook 'org-store-link-functions 'ein:org-store-link)))
|
||||
;; The above expression is evaluated via loaddef file. At the moment,
|
||||
;; org.el nor ein-org.el need not be loaded. When org-mode is used,
|
||||
|
|
Loading…
Add table
Reference in a new issue