Changeset 9294741 in dotfiles


Ignore:
Timestamp:
Jan 30, 2020, 7:14:41 PM (5 years ago)
Author:
Mikhail Kirillov <w96k@…>
Branches:
master
Children:
d6209df
Parents:
1b1a5176
Message:

Update config for python

Location:
emacs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • emacs/.emacs

    r1b1a5176 r9294741  
    3232(require 'bind-key)
    3333
    34  (use-package exec-path-from-shell
    35    :config
    36    (when (memq window-system '(mac ns x))
    37      (exec-path-from-shell-initialize)
    38      (exec-path-from-shell-copy-env "PATH")))
     34(use-package exec-path-from-shell
     35  :config
     36  (when (memq window-system '(mac ns x))
     37    (exec-path-from-shell-copy-env "PATH")
     38    (exec-path-from-shell-copy-env "PYTHONPATH")
     39    (exec-path-from-shell-initialize)))
     40
     41(setq python-shell-interpreter "/home/w96k/.guix-profile/bin/python3")
    3942
    4043(org-babel-load-file "~/.emacs-config.org")
     
    4750 '(package-selected-packages
    4851   (quote
    49     (pos-tip keycast org-mime flycheck-lilypond flymd epresent org-journal intero vue-mode js2-mode company-anaconda anaconda-mode mwim yasnippet-snippets column-enforce-mode swiper ivy browse-kill-ring git-gutter+ magit-gitflow magit aggressive-indent mood-line color-theme-sanityinc-tomorrow auto-package-update use-package))))
     52    (pos-tip yasnippet-snippets vue-mode use-package swiper org-mime org-journal mwim mood-line magit-gitflow keycast js2-mode intero git-gutter+ flymd flycheck-lilypond epresent company-anaconda column-enforce-mode color-theme-sanityinc-tomorrow browse-kill-ring auto-package-update aggressive-indent))))
    5053(custom-set-faces
    5154 ;; custom-set-faces was added by Custom.
  • emacs/.emacs-config.org

    r1b1a5176 r9294741  
    147147#+END_SRC
    148148** Поиск (ivy + swiper + councel)
    149 
    150 # #+BEGIN_SRC emacs-lisp
    151 # (use-package ido
    152 #     :config
    153 #     (setq ido-enable-flex-matching t)
    154 #     (setq ido-everywhere t)
    155 #     (setq ido-use-ilename-at-point 'guess)
    156 #     (ido-mode))
    157 # #+END_SRC
    158 
    159 # #+BEGIN_SRC emacs-lisp
    160 # (use-package ido-vertical-mode
    161 #   :config
    162 #   (ido-vertical-mode)
    163 #   (setq ido-vertical-define-keys 'C-n-and-C-p-only))
    164 # #+END_SRC
    165 
    166 # #+BEGIN_SRC emacs-lisp
    167 #   (use-package ido-completing-read+
    168 #     :after ido
    169 #     :config
    170 #     (ido-ubiquitous-mode))
    171 # #+END_SRC
    172 
    173 # #+BEGIN_SRC emacs-lisp
    174 # (use-package smex
    175 #   :init (smex-initialize)
    176 #   :bind
    177 #   ("M-x" . smex)
    178 #   ("M-X" . smex-major-mode-commands)
    179 #   :ensure t)
    180 # #+END_SRC
    181149
    182150#+BEGIN_SRC emacs-lisp
     
    216184** Автодополнение
    217185#+BEGIN_SRC emacs-lisp
    218 ;;(use-package pos-tip)
     186(use-package pos-tip
     187  :ensure t)
    219188
    220189(use-package company
     
    233202
    234203(use-package company-quickhelp
    235   :after company
     204  :after company pos-tip
    236205  :config (company-quickhelp-mode))
    237206#+END_SRC
     
    345314  :ensure
    346315  :hook (python-mode . anaconda-mode)
    347   :config (setq python-shell-interpreter "python3"))
     316  (python-mode . anaconda-eldoc-mode))
    348317#+END_SRC
    349318*** Автодополнение
     
    352321  :ensure
    353322  :after company
    354   :config (add-to-list 'company-backends '(company-anaconda :with company-capf)))
     323  :config
     324  (add-to-list 'company-backends '(company-anaconda :with company-capf)))
    355325#+END_SRC
    356326*** Документация
     
    361331  :config (setq pydoc-command "python3 -m pydoc"))
    362332#+END_SRC
    363 *** Статический анализ
    364 #+BEGIN_SRC emacs-lisp
    365 (use-package company-jedi
    366   :after company
    367   :hook (python-mode . enable-jedi)
    368   :config  (add-to-list 'company-backends 'company-jedi))
    369 #+END_SRC
     333
     334# *** Статический анализ
     335# #+BEGIN_SRC emacs-lisp
     336#   (use-package company-jedi
     337#     :after company epc
     338#     :hook (python-mode . enable-jedi)
     339#     :config
     340#   (add-to-list 'company-backends 'company-jedi)
     341#   (defvar jedi-config:with-virtualenv nil)
     342#   (defvar jedi-config:use-system-python t)
     343#   (jedi:install-server))
     344# #+END_SRC
    370345** Javascript
    371346*** Основной мод
     
    549524(setq-default confirm-nonexistent-file-or-buffer t)
    550525#+END_SRC
     526*** Уничтожать текущий буфер
     527#+BEGIN_SRC emacs-lisp
     528(global-set-key (kbd "C-x C-k") 'kill-this-buffer)
     529#+END_SRC
    551530*** Спрашивать покороче
    552531    Не спрашивать yes/no, вместо этого спрашивать y/n
     
    599578  scroll-step 1
    600579  scroll-conservatively 10000
    601   scroll-preserve-screen-position 10)
     580  scroll-preserve-screen-position 100)
    602581#+END_SRC
    603582** Системные пакеты
Note: See TracChangeset for help on using the changeset viewer.