Use add-hook! for inline hook defuns
This commit is contained in:
parent
fe5d285a50
commit
09d13fd60d
3 changed files with 10 additions and 10 deletions
|
@ -8,7 +8,7 @@
|
|||
|
||||
(setq ob-ipython-resources-dir ".ob-ipython-resrc")
|
||||
|
||||
(add-hook '+org-babel-load-functions
|
||||
(add-hook! '+org-babel-load-functions
|
||||
(defun +org-babel-load-ipython-h (lang)
|
||||
(and (string-prefix-p "jupyter-" (symbol-name lang))
|
||||
(require 'ob-ipython nil t))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue