Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.org

orgp layer

Additions/improvements for org layer of Spacemacs.

  • Integrated packages
    • calfw calendar framework
    • org-agenda-property to display properties in the agenda buffer
    • org-ql to query org files
    • helm-org-rifle to quickly search through org files even when ivy layer is used (i.e., works without using the helm layer; orgp needs to be loaded after org for this to work)
  • Show associated timestamp of a headline in the breadcrumb
  • Various customizations for the agenda view
    • Functionality to apply custom faces for each tag in the agenda view
    • Functionality to add a pagebreak before each new data in the agenda view
    • Functionality to disable mouse-over faces in the agenda view
    • Functionality to hide time grid lines that overlap with an appointment (see layer variable orgp/org-agenda-time-grid-hide-when-appointment)
    • Custom comparator to sort agenda items such that full-day events come first, then events with a timestamp, then the TODO items
  • When selecting a date using org-read-date, show/hide diary view for selected day via !
  • Processing of src blocks
    • Functionality to tangle a single src block to a file
    • Functionality to copy a single src block to kill ring
    • Functionality to tangle all src blocks in a subtree to a file
    • Let org-babel execute bat code blocks (using cmdproxy.exe)
  • Functionality to export the current subtree to a temporary HTML file for inclusion elsewhere (see orgp/org-subtree-htmlize-to-temp-file)
  • Functionality to yank the current subtree without ID properties
  • Functionality to yank/paste table at point in various formats (org, csv, tsv)
  • More useful return key for Evil
    • in insert mode, use evil-org-return
    • in normal mode, use org-open-at-point when point is on a link, else use evil-ret
  • Add support for callto links
  • Integration with Zotero
    • Support for links to Zotero items
    • Export an org-mode link from Zotero (see comments in Org Link.js)
    • Export an org-mode item from Zotero (see comments in Org Entry.js), including a link to the Zotero item and a suitable setting of the attachment folder
  • Modifies org-sticky-header to show full path unfontified in header line (enable with layer variable org-enable-sticky-header)
  • Additional keybindings
    • Quickly reveal things around point
    • Access to org-babel
    • Quicker timestamp changes in agenda view

Keybindings

In the keybindings given below, , refers to the major mode leader key.

SPC aofa / ,fasearch through agenda files with helm-org-rifle
SPC aofA / ,fAsearch through agenda and archive files with helm-org-rifle
,jrsearch through current buffer with helm-org-rifle
navigationSPC aofr / ,frgoto last refiled entry
SPC aofc / ,fcgoto last captured entry
SPC aoqquery agenda using org-ql
subtrees,ycopy current subtree without ID properties
,etexport subtree to temporary HTML file and copy file name to kill ring
table,tyyyank table at point as ORG
,tycyank table at point as CSV
,tytyank table at point as TSV
,tPPpaste table (automatically determine format)
,tPcpaste table from CSV
,tPtpaste table from TSV
visiblity,vcreveal the children of the current entry
,vereveal the body of the current entry
,vofold all top-level headlines
,vrreveal the current entry, its parents, and the next sibling headline
,vvreveal the current entry, its parents, and all its siblings
org-babel,bprefix to access all org-babel commands
,bbexecute current src block
,bBexecute all src blocks in buffer
,btttangle file
,btstangle subtree
,btbtangle current block
,btycopy current block to kill ring
AgendaS-<left> / S-<right>change forward/backward timestamp by day
C-<left> / C-<right>change forward/backward timestamp by hour
M-<left> / M-<right>change forward/backward timestamp by minute
Date prompt!Toggle diary view for selected day
Other,TItoggle org-indent mode

Customizations for agenda view

Disabled by default. Example usage:

;; hook to change appearance of agenda view
(defun my/org-agenda-finalize-hook ()
  (save-excursion
    ;; color agenda items by their tag (faces need to be defined somewhere)
    (orgp/org-agenda-color-by-tag "personal" 'my/org-agenda-calendar-event-personal-face)
    (orgp/org-agenda-color-by-tag "work" 'my/org-agenda-calendar-event-anniversary-face)

    ;; add a pagebreak before every new day
    (orgp/org-agenda-pagebreak-before-new-date)

    ;; don't change the face on mouse-over
    (orgp/org-agenda-modify-mouse-face)))

;; enable the above hook
(add-hook 'org-agenda-finalize-hook 'my/org-agenda-finalize-hook t)

;; show page breaks as horizontal lines
(add-hook 'org-agenda-mode-hook 'turn-on-page-break-lines-mode)

;; sort agenda items such that full-day events come first, then events with a
;; timestamp, then the TODO items
(setq org-agenda-cmp-user-defined 'orgp/org-agenda-cmp-todos-up)
(setq  org-agenda-sorting-strategy
       '((agenda user-defined-up time-up priority-down category-keep)
         (todo deadline-up)
         (tags ts-down priority-down alpha-up)
         (search ts-down priority-down alpha-up)))