org layer: add support for org-sticky-header-mode

This commit is contained in:
Langston Barrett 2019-02-09 15:02:36 -08:00 committed by smile13241324
parent 197d1e4c57
commit 022b0b3823
3 changed files with 22 additions and 0 deletions

View File

@ -20,6 +20,7 @@
- [[#project-support][Project support]]
- [[#org-brain-support][Org-brain support]]
- [[#mode-line-support][Mode line support]]
- [[#sticky-header-support][Sticky header support]]
- [[#key-bindings][Key bindings]]
- [[#starting-org-mode][Starting org-mode]]
- [[#toggles][Toggles]]
@ -290,6 +291,16 @@ To permanently enable mode line display of org clock, add this snippet to your
(setq spaceline-org-clock-p t)
#+END_SRC
** Sticky header support
To install sticky header support set the variable =org-enable-sticky-header= to =t=.
#+BEGIN_SRC emacs-lisp
(setq-default dotspacemacs-configuration-layers '(
(org :variables
org-enable-sticky-header t)))
#+END_SRC
* Key bindings
** Starting org-mode

View File

@ -32,6 +32,9 @@ used.")
(defvar org-enable-org-journal-support nil
"If non-nil org-journal is configured.")
(defvar org-enable-sticky-header nil
"If non-nil org-sticky-header is configured.")
(defvar org-enable-hugo-support nil
"If non-nil, Hugo (https://gohugo.io) related packages are configured.")

View File

@ -39,6 +39,7 @@
persp-mode
(ox-hugo :toggle org-enable-hugo-support)
(org-trello :toggle org-enable-trello-support)
(org-sticky-header :toggle org-enable-sticky-header)
))
(defun org/post-init-company ()
@ -715,3 +716,10 @@ Headline^^ Visit entry^^ Filter^^ Da
"mtdc" 'spacemacs/org-trello-pull-card
"mtub" 'spacemacs/org-trello-push-buffer
"mtuc" 'spacemacs/org-trello-push-card))))
(defun org/init-org-sticky-header ()
(use-package org-sticky-header
:defer t
:init
(add-hook 'org-mode-hook 'org-sticky-header-mode)))