X-Git-Url: https://git.shemshak.org/gitweb.cgi/~bandali/configs/blobdiff_plain/97141042900a4675b2fb9c8bef6bcae6c69c7f1e..8c69260b3d8ba02b1f604b9a524a3d5f0a16df73:/lisp/bandali-org.el diff --git a/lisp/bandali-org.el b/lisp/bandali-org.el index 9e45fa4..a9ab750 100644 --- a/lisp/bandali-org.el +++ b/lisp/bandali-org.el @@ -1,3 +1,29 @@ +;;; bandali-org.el --- bandali's Org setup -*- lexical-binding: t; -*- + +;; Copyright (C) 2018-2020 Amin Bandali + +;; Author: Amin Bandali +;; Keywords: calendar, data, docs, hypermedia, outlines + +;; This program is free software; you can redistribute it and/or modify +;; it under the terms of the GNU General Public License as published by +;; the Free Software Foundation, either version 3 of the License, or +;; (at your option) any later version. + +;; This program is distributed in the hope that it will be useful, +;; but WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;; GNU General Public License for more details. + +;; You should have received a copy of the GNU General Public License +;; along with this program. If not, see . + +;;; Commentary: + +;; My set up for Org (org-mode) and all things Org. + +;;; Code: + (use-package org :config (setq org-src-tab-acts-natively t @@ -51,6 +77,7 @@ (use-package ox-extra :config + (declare-function ox-extras-activate "ox-extra" (extras)) (ox-extras-activate '(latex-header-blocks ignore-headlines))) ;; asynchronous tangle, using emacs-async to asynchronously tangle an @@ -70,7 +97,8 @@ (file (buffer-file-name)) (file-nodir (file-name-nondirectory file)) ;; (async-quiet-switch "-q") - (file-noext (file-name-sans-extension file))) + ;; (file-noext (file-name-sans-extension file)) + ) (async-start `(lambda () (require 'org) @@ -91,4 +119,8 @@ 'safe-local-variable-values '(eval add-hook 'after-save-hook #'b/async-babel-tangle 'append 'local)) +(use-package org-tanglesync + :hook (org-mode . org-tanglesync-mode)) + (provide 'bandali-org) +;;; bandali-org.el ends here