From 3dbfd145dfd4d8feadfb025a9e8766f15601434d Mon Sep 17 00:00:00 2001 From: Taylor Bockman Date: Sat, 17 Aug 2019 13:02:47 -0700 Subject: [PATCH] Add some stuff related to python mode --- .gitignore | 3 +++ dotfiles/emacs.d/init.el | 5 +++++ dotfiles/emacs.d/package.el | 1 + 3 files changed, 9 insertions(+) diff --git a/.gitignore b/.gitignore index c77cb5e..454ac6e 100644 --- a/.gitignore +++ b/.gitignore @@ -31,6 +31,9 @@ helm-adaptive-history */emacs.d/irony/* +/dotfiles/.emacs.d/transient/history.el +/dotfiles/.emacs.d/session.* + # nvim specific plugged bundle/** diff --git a/dotfiles/emacs.d/init.el b/dotfiles/emacs.d/init.el index 814bd4b..a39a29f 100644 --- a/dotfiles/emacs.d/init.el +++ b/dotfiles/emacs.d/init.el @@ -176,6 +176,11 @@ (add-hook 'python-mode-hook 'jedi:setup) (setq jedi:complete-on-dot t) +(defun my/python-mode-hook () + (add-to-list 'company-backends 'company-jedi)) + +(add-hook 'python-mode-hook 'my/python-mode-hook) + ;;-------------------------------------------------------------------------------------- ;; Ensure Shell Variables Look the Same in Emacs (OS X and Linux) ;;-------------------------------------------------------------------------------------- diff --git a/dotfiles/emacs.d/package.el b/dotfiles/emacs.d/package.el index 798d7dc..53e74a1 100644 --- a/dotfiles/emacs.d/package.el +++ b/dotfiles/emacs.d/package.el @@ -5,6 +5,7 @@ company company-irony company-emacs-eclim + jedi-core ;; We don't need the `jedi` package ;; since we are using company. If we