Skip to content
Snippets Groups Projects
Commit 9e552e65 authored by Michael Hauspie's avatar Michael Hauspie
Browse files

Move more org configuration to its :custom block in use-package

parent 7dbe9d34
No related branches found
No related tags found
No related merge requests found
...@@ -493,6 +493,24 @@ org with contributed packages added. ...@@ -493,6 +493,24 @@ org with contributed packages added.
("w" "Cycling to work" ("w" "Cycling to work"
table-line (file "~/Documents/org/cycling.org") table-line (file "~/Documents/org/cycling.org")
"| %t | boulot | %^{prompt|électrique|standard} | 26.2 |"))) "| %t | boulot | %^{prompt|électrique|standard} | 26.2 |")))
;;
;; Babel code blocks evaluation
(org-babel-load-languages
'((emacs-lisp . t)
(C . t)
(latex . t)
(gnuplot . t)
(dot . t)
(java . t)
(python . t)
(makefile . t)
(org . t)
(perl . t)
(sed . t)
(shell . t)
(rust . t)
))
:config :config
(add-to-list 'org-structure-template-alist (add-to-list 'org-structure-template-alist
'("el" . "src emacs-lisp")) '("el" . "src emacs-lisp"))
...@@ -623,31 +641,11 @@ Turn off validate link in org html export: ...@@ -623,31 +641,11 @@ Turn off validate link in org html export:
** Source code evaluation ** Source code evaluation
So that source code blocks can be evaluated inside =org-mode=, we add
it to babel languages. =org-babel= is what executes code and outputs
its result in your org file.
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package gnuplot) (use-package gnuplot)
(use-package gnuplot-mode) (use-package gnuplot-mode)
(use-package ob-rust) (use-package ob-rust)
(org-babel-do-load-languages
'org-babel-load-languages
'((emacs-lisp . t)
(C . t)
(latex . t)
(gnuplot . t)
(dot . t)
(java . t)
(python . t)
(makefile . t)
(org . t)
(perl . t)
(sed . t)
(shell . t)
(rust . t)
))
#+END_SRC #+END_SRC
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment