From f462c9475f37dcf985ce25a2e1a9d90a9bdf9ef7 Mon Sep 17 00:00:00 2001 From: Christian Gram Kalhauge Date: Fri, 23 Sep 2016 18:06:57 -0700 Subject: [PATCH] Add Twitter Bootstrap support to org --- layers/+emacs/org/README.org | 12 ++++++++++++ layers/+emacs/org/config.el | 3 +++ layers/+emacs/org/packages.el | 4 ++++ 3 files changed, 19 insertions(+) diff --git a/layers/+emacs/org/README.org b/layers/+emacs/org/README.org index c93f95343..53b2a9abd 100644 --- a/layers/+emacs/org/README.org +++ b/layers/+emacs/org/README.org @@ -10,6 +10,7 @@ - [[#install][Install]] - [[#layer][Layer]] - [[#github-support][Github support]] + - [[#twitter-bootstrap-support][Twitter Bootstrap support]] - [[#gnuplot-support][Gnuplot support]] - [[#revealjs-support][Reveal.js support]] - [[#different-bullets][Different bullets]] @@ -83,6 +84,17 @@ flavored markdown set the variable =org-enable-github-support= to =t=. (org :variables org-enable-github-support t))) #+END_SRC +** Twitter Bootstrap support +To install the Twitter Boostrap extension (from [[https://github.com/marsmining/ox-twbs][ox-twbs]]), which enables twitter +bootstrap formatted html, then set the variable =org-enable-bootstrap-support= +to =t=. + +#+BEGIN_SRC emacs-lisp + (setq-default dotspacemacs-configuration-layers '( + (org :variables + org-enable-bootstrap-support t))) +#+END_SRC + ** Gnuplot support Org-mode support the plotting of data within tables through [[http://www.gnuplot.info/][Gnuplot]] as demonstrated [[http://orgmode.org/worg/org-tutorials/org-plot.html][here]]; unfortunately, this is [[https://github.com/bruceravel/gnuplot-mode/issues/15][not terribly well supported]] on Windows diff --git a/layers/+emacs/org/config.el b/layers/+emacs/org/config.el index a79577ab2..72dfc32d4 100644 --- a/layers/+emacs/org/config.el +++ b/layers/+emacs/org/config.el @@ -11,6 +11,9 @@ ;; Variables +(defvar org-enable-bootstrap-support nil + "If non-nil Twitter Bootstrap related packages are configured.") + (defvar org-enable-github-support nil "If non-nil Github related packages are configured.") diff --git a/layers/+emacs/org/packages.el b/layers/+emacs/org/packages.el index 84f70e487..7fc21d271 100644 --- a/layers/+emacs/org/packages.el +++ b/layers/+emacs/org/packages.el @@ -29,6 +29,7 @@ org-pomodoro org-present (org-projectile :toggle (configuration-layer/package-usedp 'projectile)) + (ox-twbs :toggle org-enable-bootstrap-support) ;; use a for of ox-gfm to fix index generation (ox-gfm :location (recipe :fetcher github :repo "syl20bnr/ox-gfm") :toggle org-enable-github-support) @@ -524,6 +525,9 @@ Headline^^ Visit entry^^ Filter^^ Da (org-projectile:per-repo) (setq org-projectile:per-repo-filename org-projectile-file)))) +(defun org/init-ox-twbs () + (spacemacs|use-package-add-hook org :post-config (require 'ox-twbs))) + (defun org/init-ox-gfm () (spacemacs|use-package-add-hook org :post-config (require 'ox-gfm)))