mirror of https://github.com/searxng/searxng.git
.dir-locals.el: add some comments about jedi & EPC
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
parent
147f40c386
commit
52450fd08a
|
@ -1,8 +1,9 @@
|
||||||
;;; .dir-locals.el
|
;;; .dir-locals.el
|
||||||
;;
|
;;
|
||||||
;; If you get ``*** EPC Error ***`` with this setup in your emacs session,
|
;; If you get ``*** EPC Error ***`` (even after a jedi:install-server) in your
|
||||||
;; mostly you have jedi-mode enabled but the python enviroment is missed. The
|
;; emacs session, mostly you have jedi-mode enabled but the python enviroment is
|
||||||
;; python environment has to be next to the ``<repo>/.dir-locals.el`` in::
|
;; missed. The python environment has to be next to the
|
||||||
|
;; ``<repo>/.dir-locals.el`` in::
|
||||||
;;
|
;;
|
||||||
;; ./local/py3
|
;; ./local/py3
|
||||||
;;
|
;;
|
||||||
|
@ -30,6 +31,21 @@
|
||||||
;; (py3)$ # now install into the activated 'py3' environment ..
|
;; (py3)$ # now install into the activated 'py3' environment ..
|
||||||
;; (py3)$ pip install jedi epc
|
;; (py3)$ pip install jedi epc
|
||||||
;; ...
|
;; ...
|
||||||
|
;;
|
||||||
|
;; Here is what also I found useful to add to my .emacs::
|
||||||
|
;;
|
||||||
|
;; (global-set-key [f6] 'flycheck-mode)
|
||||||
|
;; (add-hook 'python-mode-hook 'my:python-mode-hook)
|
||||||
|
;;
|
||||||
|
;; (defun my:python-mode-hook ()
|
||||||
|
;; (add-to-list 'company-backends 'company-jedi)
|
||||||
|
;; (require 'jedi-core)
|
||||||
|
;; (jedi:setup)
|
||||||
|
;; (define-key python-mode-map (kbd "C-c C-d") 'jedi:show-doc)
|
||||||
|
;; (define-key python-mode-map (kbd "M-.") 'jedi:goto-definition)
|
||||||
|
;; (define-key python-mode-map (kbd "M-,") 'jedi:goto-definition-pop-marker)
|
||||||
|
;; )
|
||||||
|
;;
|
||||||
|
|
||||||
((nil
|
((nil
|
||||||
. ((fill-column . 80)
|
. ((fill-column . 80)
|
||||||
|
|
Loading…
Reference in New Issue