#+TITLE Overpowered cofiguration for Emacs
File for configuration that can be useful and also problematic, so not always I want it turned on. Like things that make writing of code to easy and fast, make thinking of nuts and bolts unnecessary, what is very bad when you learn new language.
Flycheck (and flymake) are powerful, but problematic so I temporally disable them.
– ????
;; (use-package flycheck
;; :ensure t
;; :init (global-flycheck-mode t))
;; (use-package flymake
;; :ensure t
;; :config
;; (defun flymake-get-tex-args (file-name)
;; (list "pdflatex"
;; (list "-file-line-error" "-draftmode"
;; "-interaction=nonstopmode" file-name)))
;; (add-hook 'LaTeX-mode-hook 'flymake-mode))
They so powerful that using them may be detrimental to you knowledge of language.
You can past a snippet of code Install also yasnippet-snippets package.
(use-package yasnippet
:ensure t
:init (yas-global-mode 1))
Istaluj przez pip rope, jedi, elpy Potrzebuje też paczki Emacsa ag. py-autopep8?
(use-package elpy
:ensure t
:defer t
:init (advice-add 'python-mode :before 'elpy-enable)
:config
(define-key yas-minor-mode-map (kbd "C-c k") 'yas-expand)
(define-key global-map (kbd "C-c o") 'iedit-mode)
)
– auto-completion???
(use-package jedi
:ensure t
:init
(add-hook 'python-mode-hook 'jedi:setup)
(add-hook 'python-mode-hook 'jedi:ac-setup)
:config
(setq jedi:complet-on-dot t))