1
0
Fork 0

Enable Java in org-mode source code blocks

This commit is contained in:
Tom Willemse 2019-09-16 20:49:42 -07:00
parent b605aa6cd7
commit 298241a2d5

View file

@ -4,7 +4,7 @@
;; Author: Tom Willemse <tom@ryuslash.org> ;; Author: Tom Willemse <tom@ryuslash.org>
;; Keywords: local ;; Keywords: local
;; Version: 2019.0904.210706 ;; Version: 2019.0916.204933
;; Package-Requires: (oni-yasnippet org-plus-contrib org-bullets hydra org-wild-notifier) ;; Package-Requires: (oni-yasnippet org-plus-contrib org-bullets hydra org-wild-notifier)
;; This program is free software; you can redistribute it and/or modify ;; This program is free software; you can redistribute it and/or modify
@ -27,6 +27,7 @@
;;; Code: ;;; Code:
(require 'hydra) (require 'hydra)
(require 'ob)
(require 'org) (require 'org)
(require 'org-capture) (require 'org-capture)
(require 'org-clock) (require 'org-clock)
@ -190,6 +191,8 @@ After running it once remove it from `org-capture-after-finalize-hook'."
(add-to-list 'org-modules 'org-habit) (add-to-list 'org-modules 'org-habit)
(add-to-list 'org-modules 'org-tempo) (add-to-list 'org-modules 'org-tempo)
(add-to-list 'org-babel-load-languages '(java . t))
(add-hook 'org-mode-hook 'auto-fill-mode) (add-hook 'org-mode-hook 'auto-fill-mode)
(unless (eq system-type 'windows-nt) (unless (eq system-type 'windows-nt)