init-org.el 886 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. ;;; init-org.el --- Org-Mode Configuration File -*- lexical-binding: t -*-
  2. ;;; Commentary:
  3. ;; Some parts copied from prelude-org.el
  4. ;;; Code:
  5. (use-package org
  6. :custom
  7. (org-log-done t)
  8. (org-special-ctrl-k t)
  9. (org-special-ctrl-a t)
  10. :config
  11. (add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode))
  12. (org-babel-do-load-languages
  13. 'org-babel-load-languages
  14. '((shell . t)
  15. (elasticsearch . t)
  16. (clojure . t)
  17. (restclient . t)
  18. (sql . t)))
  19. (define-abbrev-table 'org-mode-abbrev-table
  20. '(("esq" "#+BEGIN_SRC es :jq .\n\n#+END_SRC" (lambda () (forward-line -1)))))
  21. :bind
  22. ("C-c l" . org-store-link)
  23. ("C-c a" . org-agenda)
  24. ("C-c b" . org-switchb)
  25. ;; TODO bindings
  26. ;("C-c r" . org-refile)
  27. ;("C-c c" . org-capture)
  28. )
  29. (use-package ob-restclient
  30. :after org)
  31. (use-package ob-async
  32. :after org)
  33. (provide 'init-org)
  34. ;;; init-org.el ends here