Python Programming Language

about | blog | config | notes | github

Python Programming Language….

1. Useful Resources

2. Tips and Tricks

3. Emacs Configuration

3.1. Python Mode

This is the configuration for the built-in python mode found in GNU/Emacs.

(use-package python
  :ensure nil
  :hook (inferior-python-mode . (lambda ()
                                  (process-query-on-exit-flag
                                   (get-process "Python"))))
  :custom
  (python-shell-completion-native-enable nil)
  (python-indent-offset 4)
  :config
  ;; Ensure that we select python3 always
  (when (and (executable-find "python3")
             (string= python-shell-interpreter "python"))
    (setq python-shell-interpreter "python3"))

  ;; Get python path environment variables
  (with-eval-after-load 'exec-path-from-shell
    (exec-path-from-shell-copy-env "PYTHONPATH")))

3.2. Live Coding Mode

(use-package live-py-mode)

3.3. Package Provides

(provide 'init-python)

Created: 2021-11-13

Emacs 26.1 (Org mode 9.5)