(use-package paradox
:ensure paradox
:commands (paradox-upgrade-packages paradox-list-packages)
- :config (setq paradox-execute-asynchronously t)
+ :config
+ (setq paradox-execute-asynchronously t)
+ (setq paradox-github-token t) ; I don't want to be prompted about this integration
)
#+END_SRC
* Paths
** SQL mode
#+BEGIN_SRC emacs-lisp
; load sql-indent when sql is loaded
+(use-package sql-indent
+ :hook sql-mode
+ )
(use-package sql
:mode (("\\.sql\\'" . sql-mode))
- :config
- (require sql-indent))
+ )
#+END_SRC
** Ediff
#+BEGIN_SRC emacs-lisp
** Python Programming
#+BEGIN_SRC emacs-lisp
+ (use-package python-mode
+ :hook
+ (python-mode . pyenv-mode)
+ (python-mode . flycheck-mode)
+ (python-mode . company-mode)
+ (python-mode . blacken-mode)
+ (python-mode . yas-minor-mode)
+ )
+ (use-package pyenv
+ :ensure t
+ )
+ (use-package blacken
+ :init
+ (setq-default blacken-fast-unsafe t)
+ (setq-default blacken-line-length 80)
+ :ensure t)
+
+
(use-package elpy
:ensure t
:init
(elpy-enable)
)
#+END_SRC
-
+*** Jedi
+#+BEGIN_SRC emacs-lisp
+ (use-package company-jedi
+ :ensure t
+ :hook (python-mode . (add-to-list 'company-backends 'company-jedi))
+ :hook (python-mode . 'jedi:setup)
+ :config
+ (setq jedi:complete-on-dot t)
+ )
+#+END_SRC
+*** Black
+#+begin_src emacs-lisp :tangle yes
+ (use-package python-black
+ :demand t
+ :after python)
+#+end_src
+*** Sphinx Documentation
+#+begin_src emacs-lisp :tangle yes
+ (use-package numpydoc
+ :ensure t
+ :after python
+ :bind (:map python-mode-map
+ ("C-c C-n" . numpydoc-generate)))
+ (use-package sphinx-doc
+ :ensure t
+ :config
+ (sphinx-doc-mode t)
+ (setq sphinx-doc-include-types t)
+ :after python)
+#+end_src
** Go language
#+BEGIN_SRC emacs-lisp
(use-package go-mode
(show-paren-mode 1)
(setq show-paren-delay 0.2)
+#+END_SRC
+** My Username
+#+BEGIN_SRC emacs-lisp
(setq user-mail-address "don@donarmstrong.com")
+#+END_SRC
+** Use primary selection on unix machines
+#+BEGIN_SRC emacs-lisp
;; switch back to the old primary selection method
- (setq x-select-enable-clipboard nil)
- (setq x-select-enable-primary t)
+ (if (or (string-equal system-type "darwin")
+ (string-equal system-type "windows")
+ )
+ (progn
+ (setq x-select-enable-clipboard t)
+ (setq x-select-enable-primary nil)
+ )
+ (progn
+ (setq x-select-enable-clipboard nil)
+ (setq x-select-enable-primary t)
+ ))
; (setq mouse-drag-copy-region t)
(fset 'perl-mode 'cperl-mode)