debug-ein.el 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. ;;; debug-ein.el --- Debug ein.el
  2. ;; Copyright (C) 2012- Takafumi Arakaki
  3. ;; Author: Takafumi Arakaki <aka.tkf at gmail.com>
  4. ;; This file is NOT part of GNU Emacs.
  5. ;; debug-ein.el is free software: you can redistribute it and/or modify
  6. ;; it under the terms of the GNU General Public License as published by
  7. ;; the Free Software Foundation, either version 3 of the License, or
  8. ;; (at your option) any later version.
  9. ;; debug-ein.el is distributed in the hope that it will be useful,
  10. ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. ;; GNU General Public License for more details.
  13. ;; You should have received a copy of the GNU General Public License
  14. ;; along with debug-ein.el. If not, see <http://www.gnu.org/licenses/>.
  15. ;;; Commentary:
  16. ;; emacs -Q -L path/to/nxhtml/util/ -l debug-ein.el
  17. ;;; Code:
  18. (add-to-list 'load-path (file-name-directory load-file-name))
  19. (require 'ein)
  20. (require 'ein-dev)
  21. (ein:dev-start-debug)
  22. (ein:notebooklist-open)
  23. ;;; Extra stuff
  24. (require 'markdown-mode nil t)
  25. (require 'rst nil t)
  26. (declare-function ein:ac-config "ein-ac")
  27. (declare-function global-auto-complete-mode "auto-complete")
  28. (when (featurep 'auto-complete)
  29. (global-auto-complete-mode t)
  30. (setq ein:use-auto-complete-superpack t))
  31. (declare-function ein:smartrep-config "ein-smartrep")
  32. (when (featurep 'smartrep)
  33. (setq ein:use-smartrep t))
  34. (custom-set-faces
  35. ;; Turn off background color for mumamo major chunk, to see
  36. ;; highlighting of prompt and stderr.
  37. '(mumamo-background-chunk-major
  38. ((((class color) (min-colors 88) (background dark)) nil)))
  39. ;; '(mumamo-background-chunk-submode1
  40. ;; ((((class color) (min-colors 88) (background dark)) nil)))
  41. )
  42. ;; Suppress this warning when using mumamo:
  43. ;; Warning: `font-lock-syntactic-keywords' is an obsolete variable (as of 24.1);
  44. ;; use `syntax-propertize-function' instead.
  45. ;; See: http://stackoverflow.com/a/5470584/727827
  46. (when (and (equal emacs-major-version 24)
  47. (equal emacs-minor-version 1))
  48. (eval-after-load "bytecomp"
  49. '(add-to-list 'byte-compile-not-obsolete-vars
  50. 'font-lock-syntactic-keywords)))
  51. ;;; debug-ein.el ends here