Setup hooks and mode-map for ein:notebook-org-src-mode

This commit is contained in:
Takafumi Arakaki 2012-09-04 02:45:15 +02:00
parent 8f75ef6ac0
commit f1aa821bb8

View file

@ -28,7 +28,7 @@
(require 'org-src)
(require 'ein-worksheet)
(require 'ein-notebook)
(defun ein:org-src-fontify (limit)
"Fontify next input area comes after the current point then
@ -61,6 +61,9 @@ This function may raise an error."
"Notebook mode with org-mode powered fontification."
(ein:org-src-set-font-lock-defaults))
(add-hook 'ein:notebook-org-src-mode-hook 'ein:worksheet-imenu-setup)
(set-keymap-parent ein:notebook-org-src-mode-map ein:notebook-mode-map)
(provide 'ein-org-src)
;;; ein-org-src.el ends here