Add golang support for org-babel
This commit is contained in:
parent
20efdb863f
commit
7c4c9ea5da
2 changed files with 2 additions and 3 deletions
1
Cask
1
Cask
|
@ -153,6 +153,7 @@
|
|||
(depends-on "org-opml" :git "https://github.com/edavis/org-opml")
|
||||
(depends-on "company-math")
|
||||
(depends-on "ob-http")
|
||||
(depends-on "ob-go" :git "https://github.com/pope/ob-go")
|
||||
(depends-on "org-download")
|
||||
|
||||
;; PlantUML -- modules/module-plantuml.el
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue