Commits

Ivan Andrus  committed 484316b

Added basic fontlocking to inferior sage mode

  • Participants
  • Parent commits b08a6d6

Comments (0)

Files changed (1)

File emacs/sage-mode.el

 (defun sage-font-lock ()
   "Install Sage font-lock patterns."
   (interactive)
-  ;; (font-lock-add-keywords 'sage-mode python-font-lock-keywords 'set) ;; XXX
+  (font-lock-add-keywords 'sage-mode python-font-lock-keywords 'set) ;; XXX
 ;;   (font-lock-add-keywords 'sage-mode
 ;; 			  `(("\\(\\*\\*\\)test\\(\\*\\*\\)" . 'font-lock-comment-face)))
 )
 
 (add-hook 'sage-mode-hook 'sage-font-lock)
+(add-hook 'inferior-sage-mode-hook 'sage-font-lock)
 
 ;;;_* Treat SAGE code as Python source code