|
|
@ -130,6 +130,36 @@ Then run FUN with ARGS." |
|
|
|
(is-installed 'neotree) |
|
|
|
(require 'neotree) |
|
|
|
(global-set-key [f8] 'neotree-toggle) |
|
|
|
;; ======== |
|
|
|
;; Python |
|
|
|
;;=-=-=-=-=-= |
|
|
|
;; Python completion: |
|
|
|
(is-installed 'anaconda-mode) |
|
|
|
(add-hook 'python-mode-hook 'anaconda-mode) |
|
|
|
(add-hook 'python-mode-hook 'anaconda-eldoc-mode) |
|
|
|
;(add-hook 'python-mode-hook 'jedi:setup) |
|
|
|
;(setq jedi:complete-on-dot t) ; optional |
|
|
|
;(setq jedi:environment-root "/usr/local/bin/python3") |
|
|
|
;;======= |
|
|
|
;; Python pyvenv |
|
|
|
(is-installed 'pyvenv) |
|
|
|
(pyvenv-mode t) |
|
|
|
(setenv "WORKON_HOME" "~/.pyvenv/") |
|
|
|
;(setq python-shell-interpreter (concat pyvenv-virtual-env "bin/python3")) |
|
|
|
;(setq python-shell-interpreter "/usr/local/bin/python3") |
|
|
|
;; -=-=-=-=-=-=-=-=- |
|
|
|
;; My functions gmarx |
|
|
|
;; Python chunk: |
|
|
|
(defun python-shell-send-chunk () |
|
|
|
(interactive) |
|
|
|
(save-excursion |
|
|
|
(mark-paragraph) |
|
|
|
(let ((start (region-beginning)) |
|
|
|
(end (region-end))) |
|
|
|
(python-shell-send-region start end)) |
|
|
|
(keyboard-quit))) |
|
|
|
;; my keybindings: |
|
|
|
(global-set-key (kbd "C-c C-k") 'python-shell-send-chunk) |
|
|
|
|
|
|
|
;;==================== |
|
|
|
;; emacs startup config |
|
|
@ -150,7 +180,12 @@ Then run FUN with ARGS." |
|
|
|
;; If you edit it by hand, you could mess it up, so be careful. |
|
|
|
;; Your init file should contain only one such instance. |
|
|
|
;; If there is more than one, they won't work right. |
|
|
|
) |
|
|
|
'(custom-safe-themes |
|
|
|
'("b0e446b48d03c5053af28908168262c3e5335dcad3317215d9fdeb8bac5bacf9" default)) |
|
|
|
'(package-selected-packages |
|
|
|
'(anaconda-mode which-key use-package pyvenv pdf-tools org-ref neotree markdown-mode jedi helm doom-themes doom-modeline docker-compose-mode auctex)) |
|
|
|
'(safe-local-variable-values |
|
|
|
'((LaTeX-includegraphics-read-file . LaTeX-includegraphics-read-file-relative)))) |
|
|
|
(custom-set-faces |
|
|
|
;; custom-set-faces was added by Custom. |
|
|
|
;; If you edit it by hand, you could mess it up, so be careful. |
|
|
|