.emacs-my
changeset 1727 371302065ef0
parent 1726 ffd1272d96dc
child 1728 746bcf68435f
equal deleted inserted replaced
1726:ffd1272d96dc 1727:371302065ef0
  3058 (setq python-shell-interpreter "python3")
  3058 (setq python-shell-interpreter "python3")
  3059 (setq python-shell-interpreter-args "-i")
  3059 (setq python-shell-interpreter-args "-i")
  3060 
  3060 
  3061 (setq python-indent-offset 4)
  3061 (setq python-indent-offset 4)
  3062 
  3062 
       
  3063 ;; (symbol-plist 'python-shell-process-environment)
       
  3064 (put 'python-shell-process-environment 'safe-local-variable 'listp)
       
  3065 (add-to-list 'safe-local-variable-values '(python-shell-interpreter . "python"))
       
  3066 (add-to-list 'safe-local-variable-values '(python-shell-interpreter . "python2"))
       
  3067 (add-to-list 'safe-local-variable-values '(python-shell-interpreter . "python3"))
       
  3068 
  3063 (defun my-python/describe-at-point (symbol process prefix)
  3069 (defun my-python/describe-at-point (symbol process prefix)
  3064   "Show full docs for symbol at point using Python's help() built-in.
  3070   "Show full docs for symbol at point using Python's help() built-in.
  3065 
  3071 
  3066 With argument 1 uses Python's type() built-in.
  3072 With argument 1 uses Python's type() built-in.
  3067 With argument 2 uses Python's repr() built-in.
  3073 With argument 2 uses Python's repr() built-in.