1680 |
;;;; Modes. |
;;;; Modes. |
1681 |
|
|
1682 |
(defvar outline-heading-end-regexp) |
(defvar outline-heading-end-regexp) |
1683 |
(defvar eldoc-print-current-symbol-info-function) |
(defvar eldoc-documentation-function) |
1684 |
|
|
1685 |
;;;###autoload |
;;;###autoload |
1686 |
(define-derived-mode python-mode fundamental-mode "Python" |
(define-derived-mode python-mode fundamental-mode "Python" |
1740 |
'python-beginning-of-defun) |
'python-beginning-of-defun) |
1741 |
(set (make-local-variable 'end-of-defun-function) 'python-end-of-defun) |
(set (make-local-variable 'end-of-defun-function) 'python-end-of-defun) |
1742 |
(setq imenu-create-index-function #'python-imenu-create-index) |
(setq imenu-create-index-function #'python-imenu-create-index) |
1743 |
(set (make-local-variable 'eldoc-print-current-symbol-info-function) |
(set (make-local-variable 'eldoc-documentation-function) |
1744 |
#'python-eldoc-function) |
#'python-eldoc-function) |
1745 |
(add-hook 'eldoc-mode-hook |
(add-hook 'eldoc-mode-hook |
1746 |
'(lambda () (run-python 0 t)) nil t) ; need it running |
'(lambda () (run-python 0 t)) nil t) ; need it running |