Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Twitter Bootstrap support to org #7183

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions layers/+emacs/org/README.org
Original file line number Diff line number Diff line change
Expand Up @@ -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]]
Expand Down Expand Up @@ -82,6 +83,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
Expand Down
3 changes: 3 additions & 0 deletions layers/+emacs/org/config.el
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@

;; Variables

(defvar org-enable-bootstrap-support nil
"If non-nil Twitter Bootstrap related packages are configured.")

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move this above org-enable-github-support

(defvar org-enable-github-support nil
"If non-nil Github related packages are configured.")

Expand Down
5 changes: 5 additions & 0 deletions layers/+emacs/org/packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
org-pomodoro
org-present
(org-projectile :toggle (configuration-layer/package-usedp 'projectile))
(ox-twbs :location (recipe :fetcher github :repo "marsmining/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)
Expand Down Expand Up @@ -522,6 +524,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)))

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move this above org/init-ox-gfm to be in alphabetical order

(defun org/init-ox-gfm ()
(spacemacs|use-package-add-hook org :post-config (require 'ox-gfm)))

Expand Down