(require 'ansi-color)
(require 'cl-lib)
(require 'comint)
-(eval-when-compile (require 'subr-x)) ;For `string-empty-p'.
+(eval-when-compile (require 'subr-x)) ;For `string-empty-p' and `string-join'.
+(require 'treesit)
+(require 'pcase)
+ (require 'compat nil 'noerror)
+ (require 'project nil 'noerror)
+ (require 'seq)
;; Avoid compiler warnings
(defvar compilation-error-regexp-alist)
:version "24.3"
:link '(emacs-commentary-link "python"))
+(defcustom python-use-tree-sitter nil
+ "If non-nil, `python-mode' tries to use tree-sitter.
+Currently `python-mode' uses tree-sitter for font-locking, imenu,
+and movement functions."
+ :type 'boolean)
+
+ (defcustom python-interpreter "python"
+ "Python interpreter for noninteractive use.
+ To customize the Python shell, modify `python-shell-interpreter'
+ instead."
+ :version "29.1"
+ :type 'string)
+
++
\f
;;; Bindings