DP7ZONE3EV2FDYPE7ZJUUCRP27GDJZJMXAO6YNSQEEP7GEVX7R6QC
4CY7MCSHC3SH56WYDFAIATDJWXLODX3MBTSEPRIYJAAHRVL5TUOAC
FA2FZW73JE5ZLOUGZWFGHH42W4LOYMQPTHMIV5DJBDEFNGNTYOCQC
WWIV4O35A6J56CCAQ6EV3JCXDBAJYGEPU47Z6LOIYU3Q2XV4ZYFAC
LEY3QGCOMNZLJFZ5JQBSAUAZIJ7JRTMRFQADOG3EUPLNDZZB2YZQC
AT4I3XSN3KN4K56GP5ZV55NKYDZ7LFV4AHKMB3PHQCXN56SADVTAC
4D7TFJR4CXMDTY4SQ22YL3GEKSSAOI7VYRZ3LZDNE5TCWQJEPLQQC
"Own smtpmail-multi package.")
"Own smtpmail-multi package."
(use-package smtpmail-multi
:defer t))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; post inits for configuration of any packages
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(defun personal-layer/post-init-anaconda-mode ()
"Configure anaconda-mode."
(setq anaconda-mode-localhost-address "localhost"))
(defun personal-layer/post-init-blacken ()
"Configure blacken."
(define-minor-mode blacken-mode
"Optionally run black before saving."
:lighter " Black"
(if blacken-mode
(add-hook 'before-save-hook 'personal-layer-maybe-format-buffer-with-black nil t)
(remove-hook 'before-save-hook 'personal-layer-maybe-format-buffer-with-black t))))
(defun personal-layer/post-init-python ()
"Configure python."
(progn
;; use black instead of yapf
(spacemacs|use-package-add-hook python
:post-config
(spacemacs/set-leader-keys-for-major-mode 'python-mode
"=" 'blacken-buffer))
(add-hook 'python-mode-hook 'blacken-mode)
(defun personal-layer/post-init-evil-mode ()
"Configure evil-mode.")
;; override python breakpoint function, copy pasted from python layer's funcs.el
(defun spacemacs/python-toggle-breakpoint ()
"Personally customized: Add a break point, highlight it."
(interactive)
(let ((trace (cond ((spacemacs/pyenv-executable-find "wdb") "import wdb; wdb.set_trace()")
((spacemacs/pyenv-executable-find "ipdb")
"import ipdb; ipdb.set_trace(context=15)")
((spacemacs/pyenv-executable-find "pudb") "import pudb; pudb.set_trace()")
((spacemacs/pyenv-executable-find "ipdb3") "import ipdb; ipdb.set_trace()")
((spacemacs/pyenv-executable-find "pudb3") "import pudb; pudb.set_trace()")
(t "import pdb; pdb.set_trace()")))
(line (thing-at-point 'line)))
(if (and line (string-match trace line))
(kill-whole-line)
(progn
(back-to-indentation)
(insert trace)
(insert "\n")
(python-indent-line)))))
))