Add golang support for org-babel

This commit is contained in:
Henrik Lissner 2015-11-18 15:22:25 -05:00
parent 20efdb863f
commit 7c4c9ea5da
2 changed files with 2 additions and 3 deletions

View file

@ -158,14 +158,12 @@
(add-hook! org-mode
(add-hook 'after-save-hook (lambda () (shut-up! (org-babel-lob-ingest (buffer-file-name)))) t t))
(require 'ob-http)
(require 'ob-rust)
(org-babel-do-load-languages
'org-babel-load-languages
'((python . t) (ruby . t) (sh . t) (js . t) (css . t)
(plantuml . t) (emacs-lisp . t) (matlab . t) (R . t)
(latex . t) (calc . t)
(http . t) (rust . t)))
(http . t) (rust . t) (go . t)))
(defadvice org-edit-src-code (around set-buffer-file-name activate compile)
(let ((file-name (buffer-file-name))) ;; (1)