Browse Source

Add pipenv config

master
10sr 6 years ago
parent
commit
974b2b30bc
Signed by: 10sr GPG Key ID: 7BEC428194130EB2
1 changed files with 9 additions and 1 deletions
  1. +9
    -1
      emacs.el

+ 9
- 1
emacs.el View File

@@ -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


Loading…
Cancel
Save