Executable path and name fixes

This commit is contained in:
Wojciech Kozlowski 2018-12-07 20:00:21 +00:00
parent 53a97ac08e
commit 27436c0d16
3 changed files with 16 additions and 3 deletions

View File

@ -270,6 +270,11 @@
;; --------------------------------------------------------------------------
(setq-default auto-window-vscroll nil)
;; --------------------------------------------------------------------------
;; Add directories to exec-path.
;; --------------------------------------------------------------------------
(setq exec-path (append exec-path '("/home/wojtek/.local/bin")))
)
(provide 'em-emacs)

View File

@ -57,6 +57,7 @@ enabled."
""))
;; Set the modeline
(setq doom-modeline-python-executable "python3")
(doom-modeline-def-modeline 'main
'(bar

View File

@ -116,12 +116,17 @@
;; Enable elpy.
;; --------------------------------------------------------------------------
(use-package python
:init
(setq python-shell-interpreter "python3"))
(use-package elpy
:hook (python-mode . elpy-mode)
:config
(unbind-key "C-c C-f" python-mode-map)
(unbind-key "C-c C-f" elpy-mode-map)
(setq python-shell-interpreter "ipython"
(setq elpy-rpc-python-command "python3")
(setq python-shell-interpreter "ipython3"
python-shell-interpreter-args "-i --simple-prompt"))
(use-package py-autopep8
@ -187,7 +192,7 @@
(with-current-buffer (get-buffer-create tmpf)
(setq err-msg (buffer-string))
(kill-current-buffer))
(kill-buffer))
(unless (= ret 0)
(error err-msg)))))
@ -201,7 +206,9 @@
(rust-new-project project-name "lib"))
(use-package rust-mode
:defer t)
:defer t
:config
(setq exec-path (append exec-path '("/home/wojtek/.cargo/bin"))))
;; This requires some additional setup as the racer binary must be installed
;; and the Rust libstd sources must be installed.