Address a few more byte-compiler warnings
[~bandali/configs] / lisp / bandali-org.el
index 9e45fa4..a9ab750 100644 (file)
@@ -1,3 +1,29 @@
+;;; bandali-org.el --- bandali's Org setup           -*- lexical-binding: t; -*-
+
+;; Copyright (C) 2018-2020  Amin Bandali
+
+;; Author: Amin Bandali <bandali@gnu.org>
+;; 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 <https://www.gnu.org/licenses/>.
+
+;;; 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)
  '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