Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions emacs-the-best-python-editor/PyEval/Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,3 @@ name = "pypi"
autopep8 = "*"
black = "*"
jedi = "*"

[requires]
python_version = "3.6"
228 changes: 189 additions & 39 deletions emacs-the-best-python-editor/PyEval/Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion emacs-the-best-python-editor/README.md
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
Support file for the Emacs: The Best Python Editor article.
# Emacs: The Best Python Editor?

This folder contains the support files for the Real Python tutorial [Emacs: The Best Python Editor?](https://realpython.com/emacs-the-best-python-editor/).
14 changes: 7 additions & 7 deletions emacs-the-best-python-editor/init.el
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
;; ===================================
;; MELPA Package Support
;; ===================================
;; Enables packaging support
;; Enables basic packaging support
(require 'package)

;; Adds the Melpa archive to the list of available repositories
(add-to-list 'package-archives
'("melpa" . "http://melpa.org/packages/") t)
'("melpa" . "https://melpa.org/packages/") t)

;; Initializes the package infrastructure
(package-initialize)
Expand All @@ -21,7 +21,7 @@
;;
;; myPackages contains a list of package names
(defvar myPackages
'(better-defaults ;; Setup some better Emacs defaults
'(better-defaults ;; Set up some better Emacs defaults
elpy ;; Emacs Lisp Python Environment
ein ;; Emacs iPython Notebook
flycheck ;; On the fly syntax checking
Expand All @@ -45,10 +45,10 @@

(setq inhibit-startup-message t) ;; Hide the startup message
(load-theme 'material t) ;; Load material theme
(global-linum-mode t) ;; Enable line numbers globally
(global-display-line-numbers-mode t) ;; Enable line numbers globally

;; ====================================
;; DEVELOPMENT SETUP
;; Development Setup
;; ====================================
;; Enable elpy
(elpy-enable)
Expand All @@ -59,13 +59,13 @@
;; python-shell-prompt-detect-failure-warning nil)
;; (add-to-list 'python-shell-completion-native-disabled-interpreters
;; "jupyter")

;; Enable Flycheck
(when (require 'flycheck nil t)
(setq elpy-modules (delq 'elpy-module-flymake elpy-modules))
(add-hook 'elpy-mode-hook 'flycheck-mode))

;; Enable Autopep8
;; Enable autopep8
;; (require 'py-autopep8)
;; (add-hook 'elpy-mode-hook 'py-autopep8-enable-on-save)

Expand Down
Loading