org: add a toggle for bringing in org-trello
Signed-off-by: Magnus Therning <magnus@therning.org>
This commit is contained in:
parent
ae00b1c70a
commit
d29c783286
|
@ -50,6 +50,7 @@ python-*-docs-html
|
|||
nov-places
|
||||
workspace
|
||||
eclipse.jdt.ls
|
||||
.trello
|
||||
|
||||
# Private directory
|
||||
private/
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
- [[#revealjs-support][Reveal.js support]]
|
||||
- [[#org-journal-support][Org-journal support]]
|
||||
- [[#hugo-support][Hugo support]]
|
||||
- [[#trello-support][Trello support]]
|
||||
- [[#different-bullets][Different bullets]]
|
||||
- [[#project-support][Project support]]
|
||||
- [[#org-brain-support][Org-brain support]]
|
||||
|
@ -228,6 +229,15 @@ To install the Org exporter [[https://ox-hugo.scripter.co][ox-hugo]] that genera
|
|||
org-enable-hugo-support t)))
|
||||
#+END_SRC
|
||||
|
||||
** Trello support
|
||||
To install Trello support set the variable =org-enable-trello-support= to =t=.
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(setq-default dotspacemacs-configuration-layers '(
|
||||
(org :variables
|
||||
org-enable-trello-support t)))
|
||||
#+END_SRC
|
||||
|
||||
** 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
|
||||
|
|
|
@ -34,3 +34,6 @@ used.")
|
|||
|
||||
(defvar org-enable-hugo-support nil
|
||||
"If non-nil, Hugo (https://gohugo.io) related packages are configured.")
|
||||
|
||||
(defvar org-enable-trello-support nil
|
||||
"If non-nil org-trello is configured")
|
||||
|
|
|
@ -49,3 +49,13 @@
|
|||
(with-eval-after-load 'evil-surround
|
||||
(add-to-list 'evil-surround-pairs-alist '(?: . spacemacs//surround-drawer))
|
||||
(add-to-list 'evil-surround-pairs-alist '(?# . spacemacs//surround-code))))
|
||||
|
||||
|
||||
|
||||
(defun spacemacs/org-trello-pull-buffer ()
|
||||
(interactive)
|
||||
(org-trello-sync-buffer 1))
|
||||
|
||||
(defun spacemacs/org-trello-push-buffer ()
|
||||
(interactive)
|
||||
(org-trello-sync-buffer))
|
||||
|
|
|
@ -37,6 +37,7 @@
|
|||
(ox-reveal :toggle org-enable-reveal-js-support)
|
||||
persp-mode
|
||||
(ox-hugo :toggle org-enable-hugo-support)
|
||||
(org-trello :toggle org-enable-trello-support)
|
||||
))
|
||||
|
||||
(defun org/post-init-company ()
|
||||
|
@ -664,3 +665,18 @@ Headline^^ Visit entry^^ Filter^^ Da
|
|||
|
||||
(defun org/init-ox-hugo ()
|
||||
(use-package ox-hugo :after ox))
|
||||
|
||||
(defun org/init-org-trello ()
|
||||
(use-package org-trello
|
||||
:after org
|
||||
:config
|
||||
(progn
|
||||
(spacemacs/declare-prefix-for-mode 'org-mode "mo" "trello")
|
||||
(spacemacs/set-leader-keys-for-major-mode 'org-mode
|
||||
"oI" 'org-trello-install-key-and-token
|
||||
"oa" 'org-trello-archive-card
|
||||
"oc" 'org-trello-create-board-and-install-metadata
|
||||
"od" 'spacemacs/org-trello-pull-buffer
|
||||
"oi" 'org-trello-install-board-metadata
|
||||
"om" 'org-trello-update-board-metadata
|
||||
"ou" 'spacemacs/org-trello-push-buffer))))
|
||||
|
|
Loading…
Reference in New Issue