From 8829a625aae76b5bfc793b390b4042d916f7c359 Mon Sep 17 00:00:00 2001 From: jowj Date: Wed, 16 Jan 2019 13:33:49 -0600 Subject: [PATCH 1/4] Add pdf-tools for viewing of: pdfs. --- applicationConfiguration/.emacs/init.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applicationConfiguration/.emacs/init.el b/applicationConfiguration/.emacs/init.el index d369e70..4cce93f 100644 --- a/applicationConfiguration/.emacs/init.el +++ b/applicationConfiguration/.emacs/init.el @@ -125,7 +125,7 @@ (file "~/Nextcloud/Documents/org/refile-beorg.org") "" :immediate-finish t))) '(package-selected-packages - '(weechat jedi python-mode pylint py-autopep8 powershell outline-magic markdown-mode magit flycheck exec-path-from-shell elpygen elpy ein doom-themes csharp-mode))) + '(pdf-tools weechat jedi python-mode pylint py-autopep8 powershell outline-magic markdown-mode magit flycheck exec-path-from-shell elpygen elpy ein doom-themes csharp-mode))) ;; run emacs as server (connect to it with `emacsclient`) From 6d8e0417fde134ee2a258bf3fa8f9f997ca44304 Mon Sep 17 00:00:00 2001 From: jowj Date: Wed, 23 Jan 2019 23:25:57 -0600 Subject: [PATCH 2/4] Add org-babel-load-language python --- applicationConfiguration/.emacs/init.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/applicationConfiguration/.emacs/init.el b/applicationConfiguration/.emacs/init.el index e42be88..4012335 100644 --- a/applicationConfiguration/.emacs/init.el +++ b/applicationConfiguration/.emacs/init.el @@ -144,6 +144,11 @@ (require 'py-autopep8) (add-hook 'elpy-mode-hook 'py-autopep8-enable-on-save) +;; enable org-babel-load python +(org-babel-do-load-languages + 'org-babel-load-languages + '((python . t) + ;; shell confs (exec-path-from-shell-copy-env "PATH") ; copy PATH from shell From a0347916981a6e8212434f941ff5d1ee49365536 Mon Sep 17 00:00:00 2001 From: jowj Date: Wed, 23 Jan 2019 23:29:19 -0600 Subject: [PATCH 3/4] Remove broken babel config. --- applicationConfiguration/.emacs/init.el | 5 ----- 1 file changed, 5 deletions(-) diff --git a/applicationConfiguration/.emacs/init.el b/applicationConfiguration/.emacs/init.el index 4012335..e42be88 100644 --- a/applicationConfiguration/.emacs/init.el +++ b/applicationConfiguration/.emacs/init.el @@ -144,11 +144,6 @@ (require 'py-autopep8) (add-hook 'elpy-mode-hook 'py-autopep8-enable-on-save) -;; enable org-babel-load python -(org-babel-do-load-languages - 'org-babel-load-languages - '((python . t) - ;; shell confs (exec-path-from-shell-copy-env "PATH") ; copy PATH from shell From 680bf9130d15ce1cbb9820f125e317f3757a62a5 Mon Sep 17 00:00:00 2001 From: jowj Date: Wed, 23 Jan 2019 23:32:01 -0600 Subject: [PATCH 4/4] Add proper babel config --- applicationConfiguration/.emacs/init.el | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/applicationConfiguration/.emacs/init.el b/applicationConfiguration/.emacs/init.el index e42be88..738b9e7 100644 --- a/applicationConfiguration/.emacs/init.el +++ b/applicationConfiguration/.emacs/init.el @@ -130,6 +130,12 @@ ;; PYTHON CONFIGURATION ;; -------------------------------------- +;; enable org-mode babel python code blocks +(org-babel-do-load-languages + 'org-babel-load-languages + '((python . t) + (matlab . t))) + (elpy-enable) (setq python-shell-interpreter "python3" python-shell-interpreter-args "-i")