General cleanup & minor refactoring

This commit is contained in:
Henrik Lissner 2018-12-22 04:01:17 -05:00
parent 3dd34abe61
commit d6cb0ec5f5
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
8 changed files with 12 additions and 10 deletions

View file

@ -44,7 +44,7 @@ the first function to return non-nil.")
t))
(advice-add #'org-babel-confirm-evaluate :after-while #'+org*babel-lazy-load-library)
;; I prefer C-c C-c over C-c '
;; I prefer C-c C-c over C-c ' (more consistent)
(define-key org-src-mode-map (kbd "C-c C-c") #'org-edit-src-exit)
;; `org-babel-get-header' was removed from org in 9.0. Quite a few babel
@ -69,7 +69,7 @@ the first function to return non-nil.")
(setq ob-ipython-resources-dir ".ob-ipython-resrc")
(defun +org|babel-load-ipython (lang)
(and (string-match-p "^jupyter-" (symbol-name lang))
(and (string-prefix-p "jupyter-" (symbol-name lang))
(require 'ob-ipython nil t)))
(add-hook '+org-babel-load-functions #'+org|babel-load-ipython)
:config