summaryrefslogtreecommitdiff
path: root/.dir-locals.el
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2019-11-29 13:15:15 +0100
committerMarkus Heiser <markus.heiser@darmarit.de>2019-11-29 13:15:15 +0100
commit52450fd08a3c70f6cc0ef806fc450f70dc867d49 (patch)
tree2f61fc7725dea03a38a38bb56de10bb0668e2219 /.dir-locals.el
parent147f40c386f9427ddf6038fe86ba601c98f77dcd (diff)
.dir-locals.el: add some comments about jedi & EPC
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to '.dir-locals.el')
-rw-r--r--.dir-locals.el24
1 files changed, 20 insertions, 4 deletions
diff --git a/.dir-locals.el b/.dir-locals.el
index b5562240..d7ec8792 100644
--- a/.dir-locals.el
+++ b/.dir-locals.el
@@ -1,10 +1,11 @@
;;; .dir-locals.el
;;
-;; If you get ``*** EPC Error ***`` with this setup in your emacs session,
-;; mostly you have jedi-mode enabled but the python enviroment is missed. The
-;; python environment has to be next to the ``<repo>/.dir-locals.el`` in::
+;; If you get ``*** EPC Error ***`` (even after a jedi:install-server) in your
+;; emacs session, mostly you have jedi-mode enabled but the python enviroment is
+;; missed. The python environment has to be next to the
+;; ``<repo>/.dir-locals.el`` in::
;;
-;; ./local/py3
+;; ./local/py3
;;
;; In Emacs, some buffer locals are referencing the project environment:
;;
@@ -30,6 +31,21 @@
;; (py3)$ # now install into the activated 'py3' environment ..
;; (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
. ((fill-column . 80)