Skip to content

Latest commit

 

History

History
296 lines (255 loc) · 14.5 KB

README.org

File metadata and controls

296 lines (255 loc) · 14.5 KB

Org layer

img/org.png

Table of Contents

Description

This layer enables org mode for Spacemacs.

Features:

Important Note

Since version 0.104, spacemacs uses the org version from the org ELPA repository instead of the one shipped with emacs. Then, any org related code should not be loaded before dotspacemacs/user-config, otherwise both versions will be loaded and will conflict.

Because of autoloading, calling to org functions will trigger the loading up of the org shipped with emacs wich will induce conflicts. One way to avoid conflict is to wrap your org config code in a with-eval-after-load block like this:

(with-eval-after-load 'org
  ;; here goes your Org config :)
  ;; ....
  )

Install

Layer

To use this configuration layer, add it to your ~/.spacemacs. You will need to add org to the existing dotspacemacs-configuration-layers list in this file.

Github support

To install Github related extensions like ox-gfm to export to Github flavored markdown set the variable org-enable-github-support to t.

(setq-default dotspacemacs-configuration-layers '(
  (org :variables
       org-enable-github-support t)))

Gnuplot support

Org-mode support the plotting of data within tables through Gnuplot as demonstrated here; unfortunately, this is not terribly well supported on Windows at this stage. It is possible to disable the configuration of gnuplot support as usual by adding the package gnuplot to your dotspacemacs-excluded-packages variable.

Different bullets

You can tweak the bullets displayed in the org buffer in the function dotspacemacs/user-config of your dotfile by setting the variable org-bullets-bullet-list. By default the list is set to ("◉" "○" "✸" "✿").

(setq org-bullets-bullet-list '("" "" "" ""))

Key bindings

Org

Key BindingDescription
SPC a o #org agenda list stuck projects
SPC a o /org occur in agenda files
SPC a o aorg agenda list
SPC a o corg capture
SPC a o eorg store agenda views
SPC a o lorg store link
SPC a o morg tags view
SPC a o oorg agenda
SPC a o Oorg clock out
SPC a o sorg search view
SPC a o torg todo list
SPC C corg-capture
SPC C tort/capture-todo
SPC C Tort/capture-checkitem

Org with evil-org-mode

Key BindingDescription
SPC m <dotspacemacs-major-mode-leader-key>org-ctrl-c-ctrl-c
SPC m *org-ctrl-c-star
SPC m RETorg-ctrl-c-ret
SPC m -org-ctrl-c-minus
SPC m 'org-edit-special
SPC m ^org-sort
SPC m /org-sparse-tree
SPC m .org-time-stamp
SPC m !org-time-stamp-inactive
SPC m aorg-agenda
SPC m borg-tree-to-indirect-buffer
SPC m Aorg-archive-subtree
SPC m corg-capture
SPC m Cevil-org-recompute-clocks
SPC m dorg-deadline
SPC m Dorg-insert-drawer
SPC m eorg-export-dispatch
SPC m forg-set-effort
SPC m Iorg-clock-in
SPC m lorg-open-at-point
SPC m norg-narrow-to-subtree
SPC m Nwiden
SPC m Oorg-clock-out
SPC m Porg-set-property
SPC m qorg-clock-cancel
SPC m Rorg-refile
SPC m sorg-schedule
SPC m Torg-show-todo-tree
SPC m Lorg-shiftright
SPC m Horg-shiftleft
SPC m Korg-shiftup
SPC m Jorg-shiftdown
SPC m C-S-lorg-shiftcontrolright
SPC m C-S-horg-shiftcontrolleft
SPC m C-S-jorg-shiftcontroldown
SPC m C-S-korg-shiftcontrolup
SPC s jspacemacs/jump-in-buffer (jump to a heading)

Tables

Key BindingDescription
SPC m t aAlign the table at point by aligning all vertical bars
SPC m t bBlank the current table field or active region
SPC m t cConvert from `org-mode’ table to table.el and back
SPC m t d cDelete a column from the table
SPC m t d rDelete the current row or horizontal line from the table
SPC m t eReplace the table field value at the cursor by the result of a calculation
SPC m t EExport table to a file, with configurable format
SPC m t hGo to the previous field in the table
SPC m t HMove column to the left
SPC m t i cInsert a new column into the table
SPC m t i hInsert a horizontal-line below the current line into the table
SPC m t i HInsert a hline and move to the row below that line
SPC m t i rInsert a new row above the current line into the table
SPC m t IImport a file as a table
SPC m t jGo to the next row (same column) in the current table
SPC m t JMove table row down
SPC m t KMove table row up
SPC m t lGo to the next field in the current table, creating new lines as needed
SPC m t LMove column to the right
SPC m t nQuery for a size and insert a table skeleton
SPC m t NUse the table.el package to insert a new table
SPC m t pPlot the table using org-plot/gnuplot
SPC m t rRecalculate the current table line by applying all stored formulas
SPC m t sSort table lines according to the column at point
SPC m t t fToggle the formula debugger in tables
SPC m t t oToggle the display of Row/Column numbers in tables
SPC m t wWrap several fields in a column like a paragraph

Tree

Key BindingDescription
SPC m S lorg-demote-subtree
SPC m S horg-promote-subtree
SPC m S korg-move-subtree-up
SPC m S jorg-move-subtree-down
Key BindingDescription
TABorg-cycle
$org-end-of-line
^org-beginning-of-line
<org-metaleft
>org-metaright
ghoutline-up-heading
gjorg-forward-heading-same-level
gkorg-backward-heading-same-level
gloutline-next-visible-heading
torg-todo
Torg-insert-todo-heading nil
Horg-beginning-of-line
Lorg-end-of-line
oalways-insert-item
Oorg-open-above
Key BindingDescription
M-lorg-metaright
M-horg-metaleft
M-korg-metaup
M-jorg-metadown
M-Lorg-shiftmetaright
M-Horg-shiftmetaleft
M-Korg-shiftmetaup
M-Jorg-shiftmetadown
M-oorg-insert-heading+org-metaright
M-torg-insert-todo-heading nil+ org-metaright

Element insertion

Key BindingDescription
SPC m h iorg-insert-heading-after-current
SPC m h Iorg-insert-heading
SPC m i forg-insert-footnote
SPC m i lorg-insert-link

Links

Key BindingDescription
RETorg-open-at-point

Emphasis

Key BindingDescription
SPC m x bmake region bold
SPC m x cmake region code
SPC m x imake region italic
SPC m x rclear region emphasis
SPC m x smake region strike-through
SPC m x umake region underline
SPC m x vmake region verbose

Tagging

Key BindingDescription
SPC m :org-set-tags

Org agenda

The evilified org agenda supports, among others, the following bindings:

Key BindingDescription
M-jnext item
M-kprevious item
M-hearlier view
M-llater view
grrefresh
gdtoggle grid
C-vchange view

Pomodoro

Key BindingDescription
SPC m pstarts a pomodoro

Presentation

org-present must be activated explicitly by typing: SPC : org-present

Key BindingDescription
hprevious slide
lnext slide
qquit

Org-repo-todo

Key BindingDescription
SPC m g tort/goto-todos

Org-MIME

Key BindingDescription
SPC m Min message-mode buffers convert into html email
SPC m msend current buffer as HTML email message