From 974b2b30bc22cd46c46902b2d8c9a0b2482f6077 Mon Sep 17 00:00:00 2001 From: 10sr <8.slashes@gmail.com> Date: Tue, 4 Sep 2018 14:23:48 +0900 Subject: [PATCH] Add pipenv config --- emacs.el | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/emacs.el b/emacs.el index 6e805a1..4ae714e 100644 --- a/emacs.el +++ b/emacs.el @@ -210,7 +210,8 @@ found, otherwise returns nil." (message "Invocation directory: %s" default-directory) (message "%s was taken to initialize emacs." (emacs-init-time)) (view-echo-area-messages) - (view-emacs-news))) + ;; (view-emacs-news) + )) (cd ".") ; when using windows use / instead of \ in `default-directory' @@ -813,6 +814,13 @@ found, otherwise returns nil." (defvar python-mode-map (make-sparse-keymap)) (define-key python-mode-map (kbd "C-m") 'newline-and-indent)) +(when (autoload-eval-lazily 'pipenv) + (add-hook 'python-mode-hook + (lambda () + (pipenv-mode 1) + (pipenv-projectile-after-switch-default))) + ) + ;; http://fukuyama.co/foreign-regexp '(and (safe-require-or-eval 'foreign-regexp) (progn