2015-04-11 04:13:02 +00:00
|
|
|
|
;;; packages.el --- Org Layer packages File for Spacemacs
|
|
|
|
|
;;
|
2021-03-22 20:11:29 +00:00
|
|
|
|
;; Copyright (c) 2012-2021 Sylvain Benner & Contributors
|
2015-04-11 04:13:02 +00:00
|
|
|
|
;;
|
|
|
|
|
;; Author: Sylvain Benner <sylvain.benner@gmail.com>
|
|
|
|
|
;; URL: https://github.com/syl20bnr/spacemacs
|
|
|
|
|
;;
|
|
|
|
|
;; This file is not part of GNU Emacs.
|
|
|
|
|
;;
|
2021-03-24 03:31:44 +00:00
|
|
|
|
;; This program is free software; you can redistribute it and/or modify
|
|
|
|
|
;; it under the terms of the GNU General Public License as published by
|
|
|
|
|
;; the Free Software Foundation, either version 3 of the License, or
|
|
|
|
|
;; (at your option) any later version.
|
|
|
|
|
;;
|
|
|
|
|
;; This program is distributed in the hope that it will be useful,
|
|
|
|
|
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
;; GNU General Public License for more details.
|
|
|
|
|
;;
|
|
|
|
|
;; You should have received a copy of the GNU General Public License
|
|
|
|
|
;; along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
2015-04-11 04:13:02 +00:00
|
|
|
|
|
2021-02-07 08:13:26 +00:00
|
|
|
|
(defconst org-packages
|
|
|
|
|
'(
|
|
|
|
|
company
|
|
|
|
|
company-emoji
|
|
|
|
|
emoji-cheat-sheet-plus
|
|
|
|
|
evil-org
|
|
|
|
|
evil-surround
|
|
|
|
|
gnuplot
|
|
|
|
|
(helm-org-rifle :toggle (configuration-layer/layer-used-p 'helm))
|
|
|
|
|
htmlize
|
|
|
|
|
;; ob, org, org-agenda and org-contacts are installed by `org-plus-contrib'
|
|
|
|
|
(ob :location built-in)
|
|
|
|
|
(org :location built-in)
|
|
|
|
|
(org-agenda :location built-in)
|
2021-03-14 21:18:05 +00:00
|
|
|
|
(org-wild-notifier
|
|
|
|
|
:toggle org-enable-notifications)
|
2021-02-07 08:13:26 +00:00
|
|
|
|
(org-contacts :location built-in
|
|
|
|
|
:toggle org-enable-org-contacts-support)
|
|
|
|
|
(org-vcard :toggle org-enable-org-contacts-support)
|
|
|
|
|
(org-brain :toggle (version<= "25" emacs-version))
|
|
|
|
|
(org-expiry :location built-in)
|
|
|
|
|
(org-journal :toggle org-enable-org-journal-support)
|
|
|
|
|
org-download
|
|
|
|
|
(org-jira :toggle org-enable-jira-support)
|
|
|
|
|
org-mime
|
|
|
|
|
org-pomodoro
|
|
|
|
|
org-present
|
|
|
|
|
org-cliplink
|
|
|
|
|
org-rich-yank
|
|
|
|
|
(org-projectile :requires projectile)
|
|
|
|
|
(ox-epub :toggle org-enable-epub-support)
|
|
|
|
|
(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)
|
|
|
|
|
(org-re-reveal :toggle org-enable-reveal-js-support)
|
|
|
|
|
persp-mode
|
|
|
|
|
(ox-hugo :toggle org-enable-hugo-support)
|
|
|
|
|
(ox-jira :toggle org-enable-jira-support)
|
|
|
|
|
(org-trello :toggle org-enable-trello-support)
|
|
|
|
|
(org-sticky-header :toggle org-enable-sticky-header)
|
|
|
|
|
(verb :toggle org-enable-verb-support)
|
|
|
|
|
(org-roam :toggle org-enable-roam-support)
|
2021-03-14 08:47:11 +00:00
|
|
|
|
(valign :toggle org-enable-valign)
|
2021-03-17 01:13:35 +00:00
|
|
|
|
(org-appear :toggle org-enable-appear-support)))
|
2015-04-13 07:38:01 +00:00
|
|
|
|
|
2016-05-30 02:39:21 +00:00
|
|
|
|
(defun org/post-init-company ()
|
2017-01-02 05:39:04 +00:00
|
|
|
|
(spacemacs|add-company-backends :backends company-capf :modes org-mode))
|
2016-05-30 02:39:21 +00:00
|
|
|
|
|
|
|
|
|
(defun org/post-init-company-emoji ()
|
2017-01-02 05:39:04 +00:00
|
|
|
|
(spacemacs|add-company-backends :backends company-emoji :modes org-mode))
|
2015-08-27 01:55:28 +00:00
|
|
|
|
|
|
|
|
|
(defun org/post-init-emoji-cheat-sheet-plus ()
|
|
|
|
|
(add-hook 'org-mode-hook 'spacemacs/delay-emoji-cheat-sheet-hook))
|
|
|
|
|
|
2016-04-08 02:04:36 +00:00
|
|
|
|
(defun org/init-evil-org ()
|
2015-04-11 04:13:02 +00:00
|
|
|
|
(use-package evil-org
|
2018-03-04 04:37:53 +00:00
|
|
|
|
:defer t
|
2017-06-06 13:32:13 +00:00
|
|
|
|
:init
|
2015-04-11 04:13:02 +00:00
|
|
|
|
(progn
|
2017-06-06 13:32:13 +00:00
|
|
|
|
(add-hook 'org-mode-hook 'spacemacs//evil-org-mode)
|
2017-09-07 20:54:51 +00:00
|
|
|
|
(setq evil-org-use-additional-insert t
|
|
|
|
|
evil-org-key-theme `(textobjects
|
2017-06-21 10:56:44 +00:00
|
|
|
|
navigation
|
|
|
|
|
additional
|
|
|
|
|
,@(when org-want-todo-bindings '(todo)))))
|
2017-06-06 13:32:13 +00:00
|
|
|
|
:config
|
2018-01-04 06:38:23 +00:00
|
|
|
|
(spacemacs|hide-lighter evil-org-mode)))
|
2015-04-11 04:13:02 +00:00
|
|
|
|
|
2015-11-05 16:34:06 +00:00
|
|
|
|
(defun org/post-init-evil-surround ()
|
2018-06-16 07:52:32 +00:00
|
|
|
|
(add-hook 'org-mode-hook 'spacemacs/org-setup-evil-surround))
|
2015-11-05 16:34:06 +00:00
|
|
|
|
|
2015-09-08 01:31:14 +00:00
|
|
|
|
(defun org/init-gnuplot ()
|
|
|
|
|
(use-package gnuplot
|
2018-03-04 04:37:53 +00:00
|
|
|
|
:defer t
|
2015-11-18 00:38:05 +00:00
|
|
|
|
:init (spacemacs/set-leader-keys-for-major-mode 'org-mode
|
|
|
|
|
"tp" 'org-plot/gnuplot)))
|
2015-09-08 01:31:14 +00:00
|
|
|
|
|
2018-09-08 18:05:02 +00:00
|
|
|
|
(defun org/init-helm-org-rifle ()
|
|
|
|
|
(use-package helm-org-rifle
|
|
|
|
|
:defer t
|
2020-10-06 11:08:23 +00:00
|
|
|
|
:init (spacemacs/set-leader-keys "ao/" 'helm-org-rifle)))
|
2018-09-08 18:05:02 +00:00
|
|
|
|
|
2016-06-02 02:07:24 +00:00
|
|
|
|
(defun org/init-htmlize ()
|
|
|
|
|
(use-package htmlize
|
2018-03-04 04:37:53 +00:00
|
|
|
|
:defer t))
|
2016-06-02 02:07:24 +00:00
|
|
|
|
|
2016-03-23 14:17:46 +00:00
|
|
|
|
(defun org/init-ob ()
|
|
|
|
|
(use-package ob
|
2018-03-04 04:37:53 +00:00
|
|
|
|
:defer t
|
2016-03-23 14:17:46 +00:00
|
|
|
|
:init
|
|
|
|
|
(progn
|
|
|
|
|
(defun spacemacs//org-babel-do-load-languages ()
|
|
|
|
|
"Load all the languages declared in `org-babel-load-languages'."
|
|
|
|
|
(org-babel-do-load-languages 'org-babel-load-languages
|
|
|
|
|
org-babel-load-languages))
|
2016-04-30 02:47:26 +00:00
|
|
|
|
(add-hook 'org-mode-hook 'spacemacs//org-babel-do-load-languages)
|
|
|
|
|
;; Fix redisplay of inline images after a code block evaluation.
|
|
|
|
|
(add-hook 'org-babel-after-execute-hook 'spacemacs/ob-fix-inline-images))))
|
2016-03-23 14:17:46 +00:00
|
|
|
|
|
2016-04-08 02:04:36 +00:00
|
|
|
|
(defun org/init-org ()
|
2015-04-11 04:13:02 +00:00
|
|
|
|
(use-package org
|
2018-03-31 04:56:17 +00:00
|
|
|
|
:defer (spacemacs/defer)
|
2016-06-04 21:47:22 +00:00
|
|
|
|
:commands (orgtbl-mode)
|
2015-04-11 04:13:02 +00:00
|
|
|
|
:init
|
|
|
|
|
(progn
|
2020-09-20 21:56:32 +00:00
|
|
|
|
(spacemacs|require-when-dumping 'org)
|
2016-03-12 18:42:48 +00:00
|
|
|
|
(setq org-clock-persist-file (concat spacemacs-cache-directory
|
|
|
|
|
"org-clock-save.el")
|
|
|
|
|
org-id-locations-file (concat spacemacs-cache-directory
|
|
|
|
|
".org-id-locations")
|
|
|
|
|
org-publish-timestamp-directory (concat spacemacs-cache-directory
|
|
|
|
|
".org-timestamps/")
|
2017-10-18 03:46:28 +00:00
|
|
|
|
org-directory "~/org" ;; needs to be defined for `org-default-notes-file'
|
|
|
|
|
org-default-notes-file (expand-file-name "notes.org" org-directory)
|
2020-08-28 00:33:34 +00:00
|
|
|
|
org-log-done 'time
|
2015-06-15 21:23:42 +00:00
|
|
|
|
org-startup-with-inline-images t
|
2019-04-16 10:23:31 +00:00
|
|
|
|
org-latex-prefer-user-labels t
|
2016-06-10 19:50:05 +00:00
|
|
|
|
org-image-actual-width nil
|
2016-01-11 18:16:07 +00:00
|
|
|
|
org-src-fontify-natively t
|
2017-10-15 13:52:11 +00:00
|
|
|
|
org-src-tab-acts-natively t
|
2016-01-11 18:16:07 +00:00
|
|
|
|
;; this is consistent with the value of
|
|
|
|
|
;; `helm-org-headings-max-depth'.
|
|
|
|
|
org-imenu-depth 8)
|
2015-04-11 04:38:31 +00:00
|
|
|
|
|
2020-04-25 13:48:20 +00:00
|
|
|
|
(with-eval-after-load 'org-agenda
|
2020-09-18 18:08:14 +00:00
|
|
|
|
(add-to-list 'org-modules 'org-habit))
|
2020-04-25 13:48:20 +00:00
|
|
|
|
|
2015-09-29 05:07:57 +00:00
|
|
|
|
(with-eval-after-load 'org-indent
|
|
|
|
|
(spacemacs|hide-lighter org-indent-mode))
|
2019-08-01 08:45:42 +00:00
|
|
|
|
|
2015-04-13 08:09:50 +00:00
|
|
|
|
(defmacro spacemacs|org-emphasize (fname char)
|
2015-04-14 20:36:02 +00:00
|
|
|
|
"Make function for setting the emphasis in org mode"
|
2015-04-13 08:09:50 +00:00
|
|
|
|
`(defun ,fname () (interactive)
|
2015-05-08 03:06:38 +00:00
|
|
|
|
(org-emphasize ,char)))
|
2015-05-13 17:15:14 +00:00
|
|
|
|
|
2016-01-19 06:21:34 +00:00
|
|
|
|
;; Follow the confirm and abort conventions
|
|
|
|
|
(with-eval-after-load 'org-capture
|
2020-03-28 23:40:14 +00:00
|
|
|
|
(defun spacemacs//org-capture-start ()
|
|
|
|
|
"Make sure that the keybindings are available for org capture."
|
|
|
|
|
(spacemacs/set-leader-keys-for-minor-mode 'org-capture-mode
|
|
|
|
|
dotspacemacs-major-mode-leader-key 'org-capture-finalize
|
|
|
|
|
"a" 'org-capture-kill
|
|
|
|
|
"c" 'org-capture-finalize
|
|
|
|
|
"k" 'org-capture-kill
|
|
|
|
|
"r" 'org-capture-refile)
|
|
|
|
|
;; Evil bindins seem not to be applied until at least one
|
|
|
|
|
;; Evil state is executed
|
|
|
|
|
(evil-normal-state))
|
|
|
|
|
;; Must be done everytime we run org-capture otherwise it will
|
|
|
|
|
;; be ignored until insert mode is entered.
|
|
|
|
|
(add-hook 'org-capture-mode-hook 'spacemacs//org-capture-start))
|
2016-01-19 06:21:34 +00:00
|
|
|
|
|
|
|
|
|
(with-eval-after-load 'org-src
|
|
|
|
|
(spacemacs/set-leader-keys-for-minor-mode 'org-src-mode
|
2016-12-16 13:52:32 +00:00
|
|
|
|
dotspacemacs-major-mode-leader-key 'org-edit-src-exit
|
2016-01-19 06:21:34 +00:00
|
|
|
|
"c" 'org-edit-src-exit
|
|
|
|
|
"a" 'org-edit-src-abort
|
|
|
|
|
"k" 'org-edit-src-abort))
|
|
|
|
|
|
2019-01-22 09:46:43 +00:00
|
|
|
|
(autoload #'org-clock-jump-to-current-clock "org-clock")
|
2017-06-23 15:58:45 +00:00
|
|
|
|
(add-hook 'org-mode-hook 'dotspacemacs//prettify-spacemacs-docs)
|
|
|
|
|
|
2016-07-17 19:00:43 +00:00
|
|
|
|
(let ((dir (configuration-layer/get-layer-local-dir 'org)))
|
2016-03-05 11:56:30 +00:00
|
|
|
|
(setq org-export-async-init-file (concat dir "org-async-init.el")))
|
|
|
|
|
|
2015-05-13 17:15:14 +00:00
|
|
|
|
;; Insert key for org-mode and markdown a la C-h k
|
|
|
|
|
;; from SE endless http://emacs.stackexchange.com/questions/2206/i-want-to-have-the-kbd-tags-for-my-blog-written-in-org-mode/2208#2208
|
|
|
|
|
(defun spacemacs/insert-keybinding-org (key)
|
|
|
|
|
"Ask for a key then insert its description.
|
|
|
|
|
Will work on both org-mode and any mode that accepts plain html."
|
|
|
|
|
(interactive "kType key sequence: ")
|
|
|
|
|
(let* ((tag "@@html:<kbd>@@ %s @@html:</kbd>@@"))
|
|
|
|
|
(if (null (equal key "\r"))
|
|
|
|
|
(insert
|
|
|
|
|
(format tag (help-key-description key nil)))
|
|
|
|
|
(insert (format tag ""))
|
|
|
|
|
(forward-char -8))))
|
2016-05-16 09:43:01 +00:00
|
|
|
|
|
2021-02-07 08:13:26 +00:00
|
|
|
|
(dolist (prefix `(
|
|
|
|
|
("mb" . "babel")
|
|
|
|
|
("mC" . ,(org-clocks-prefix))
|
|
|
|
|
("md" . "dates")
|
|
|
|
|
("me" . "export")
|
|
|
|
|
("mf" . "feeds")
|
|
|
|
|
("mi" . "insert")
|
|
|
|
|
("miD" . "download")
|
|
|
|
|
("mm" . "more")
|
|
|
|
|
("ms" . "trees/subtrees")
|
|
|
|
|
("mT" . "toggles")
|
|
|
|
|
("mt" . "tables")
|
|
|
|
|
("mtd" . "delete")
|
|
|
|
|
("mti" . "insert")
|
|
|
|
|
("mtt" . "toggle")
|
|
|
|
|
("mx" . "text")
|
|
|
|
|
))
|
|
|
|
|
(spacemacs/declare-prefix-for-mode 'org-mode (car prefix) (cdr prefix)))
|
2015-11-18 00:38:05 +00:00
|
|
|
|
(spacemacs/set-leader-keys-for-major-mode 'org-mode
|
|
|
|
|
"'" 'org-edit-special
|
|
|
|
|
"c" 'org-capture
|
2018-09-10 19:23:13 +00:00
|
|
|
|
|
|
|
|
|
;; Clock
|
|
|
|
|
;; These keybindings should match those under the "aoC" prefix (below)
|
2017-05-04 04:23:00 +00:00
|
|
|
|
"Cc" 'org-clock-cancel
|
2018-09-10 19:23:13 +00:00
|
|
|
|
"Cd" 'org-clock-display
|
|
|
|
|
"Ce" 'org-evaluate-time-range
|
|
|
|
|
"Cg" 'org-clock-goto
|
2017-05-04 04:23:00 +00:00
|
|
|
|
"Ci" 'org-clock-in
|
2018-09-10 19:23:13 +00:00
|
|
|
|
"CI" 'org-clock-in-last
|
2019-01-22 09:46:43 +00:00
|
|
|
|
"Cj" 'spacemacs/org-clock-jump-to-current-clock
|
2017-05-04 04:23:00 +00:00
|
|
|
|
"Co" 'org-clock-out
|
2018-09-10 19:23:13 +00:00
|
|
|
|
"CR" 'org-clock-report
|
2017-07-18 10:46:32 +00:00
|
|
|
|
"Cr" 'org-resolve-clocks
|
2018-09-10 19:23:13 +00:00
|
|
|
|
|
2017-05-04 04:23:00 +00:00
|
|
|
|
"dd" 'org-deadline
|
|
|
|
|
"ds" 'org-schedule
|
|
|
|
|
"dt" 'org-time-stamp
|
|
|
|
|
"dT" 'org-time-stamp-inactive
|
2016-11-18 14:40:05 +00:00
|
|
|
|
"ee" 'org-export-dispatch
|
2018-06-02 06:00:33 +00:00
|
|
|
|
"fi" 'org-feed-goto-inbox
|
|
|
|
|
"fu" 'org-feed-update-all
|
2015-11-18 00:38:05 +00:00
|
|
|
|
|
|
|
|
|
"a" 'org-agenda
|
2017-05-01 10:40:48 +00:00
|
|
|
|
|
2018-09-10 19:23:13 +00:00
|
|
|
|
"p" 'org-priority
|
|
|
|
|
|
2018-02-10 21:14:03 +00:00
|
|
|
|
"Tc" 'org-toggle-checkbox
|
2017-08-26 13:33:53 +00:00
|
|
|
|
"Te" 'org-toggle-pretty-entities
|
2017-05-04 04:23:00 +00:00
|
|
|
|
"Ti" 'org-toggle-inline-images
|
2020-09-27 12:28:43 +00:00
|
|
|
|
"Tn" 'org-num-mode
|
2017-08-28 01:53:44 +00:00
|
|
|
|
"Tl" 'org-toggle-link-display
|
|
|
|
|
"Tt" 'org-show-todo-tree
|
2017-06-06 13:32:13 +00:00
|
|
|
|
"TT" 'org-todo
|
2017-05-04 04:23:00 +00:00
|
|
|
|
"TV" 'space-doc-mode
|
2020-01-29 07:40:02 +00:00
|
|
|
|
"Tx" 'org-latex-preview
|
2015-05-08 03:06:38 +00:00
|
|
|
|
|
2015-12-06 06:14:53 +00:00
|
|
|
|
;; More cycling options (timestamps, headlines, items, properties)
|
|
|
|
|
"L" 'org-shiftright
|
|
|
|
|
"H" 'org-shiftleft
|
|
|
|
|
"J" 'org-shiftdown
|
|
|
|
|
"K" 'org-shiftup
|
|
|
|
|
|
2015-09-16 20:08:55 +00:00
|
|
|
|
;; Change between TODO sets
|
2015-11-18 00:38:05 +00:00
|
|
|
|
"C-S-l" 'org-shiftcontrolright
|
|
|
|
|
"C-S-h" 'org-shiftcontrolleft
|
|
|
|
|
"C-S-j" 'org-shiftcontroldown
|
|
|
|
|
"C-S-k" 'org-shiftcontrolup
|
2015-09-16 20:08:55 +00:00
|
|
|
|
|
|
|
|
|
;; Subtree editing
|
2017-10-30 08:21:34 +00:00
|
|
|
|
"sa" 'org-toggle-archive-tag
|
2020-07-14 09:35:18 +00:00
|
|
|
|
"sA" 'org-archive-subtree-default
|
2017-05-04 04:23:00 +00:00
|
|
|
|
"sb" 'org-tree-to-indirect-buffer
|
2019-05-17 12:18:43 +00:00
|
|
|
|
"sd" 'org-cut-subtree
|
2021-03-17 22:22:48 +00:00
|
|
|
|
"sy" 'org-copy-subtree
|
2017-05-04 04:23:00 +00:00
|
|
|
|
"sh" 'org-promote-subtree
|
|
|
|
|
"sj" 'org-move-subtree-down
|
|
|
|
|
"sk" 'org-move-subtree-up
|
|
|
|
|
"sl" 'org-demote-subtree
|
|
|
|
|
"sn" 'org-narrow-to-subtree
|
2020-10-20 16:51:11 +00:00
|
|
|
|
"sw" 'widen
|
2017-05-04 04:23:00 +00:00
|
|
|
|
"sr" 'org-refile
|
|
|
|
|
"ss" 'org-sparse-tree
|
|
|
|
|
"sS" 'org-sort
|
2015-09-16 20:08:55 +00:00
|
|
|
|
|
2015-09-08 01:34:45 +00:00
|
|
|
|
;; tables
|
2015-11-18 00:38:05 +00:00
|
|
|
|
"ta" 'org-table-align
|
|
|
|
|
"tb" 'org-table-blank-field
|
|
|
|
|
"tc" 'org-table-convert
|
|
|
|
|
"tdc" 'org-table-delete-column
|
|
|
|
|
"tdr" 'org-table-kill-row
|
|
|
|
|
"te" 'org-table-eval-formula
|
|
|
|
|
"tE" 'org-table-export
|
2019-12-16 10:20:53 +00:00
|
|
|
|
"tf" 'org-table-field-info
|
2015-11-18 00:38:05 +00:00
|
|
|
|
"th" 'org-table-previous-field
|
|
|
|
|
"tH" 'org-table-move-column-left
|
|
|
|
|
"tic" 'org-table-insert-column
|
|
|
|
|
"tih" 'org-table-insert-hline
|
|
|
|
|
"tiH" 'org-table-hline-and-move
|
|
|
|
|
"tir" 'org-table-insert-row
|
|
|
|
|
"tI" 'org-table-import
|
|
|
|
|
"tj" 'org-table-next-row
|
|
|
|
|
"tJ" 'org-table-move-row-down
|
|
|
|
|
"tK" 'org-table-move-row-up
|
|
|
|
|
"tl" 'org-table-next-field
|
|
|
|
|
"tL" 'org-table-move-column-right
|
|
|
|
|
"tn" 'org-table-create
|
|
|
|
|
"tN" 'org-table-create-with-table.el
|
|
|
|
|
"tr" 'org-table-recalculate
|
2020-11-12 22:16:06 +00:00
|
|
|
|
"tR" 'org-table-recalculate-buffer-tables
|
2015-11-18 00:38:05 +00:00
|
|
|
|
"ts" 'org-table-sort-lines
|
|
|
|
|
"ttf" 'org-table-toggle-formula-debugger
|
|
|
|
|
"tto" 'org-table-toggle-coordinate-overlays
|
|
|
|
|
"tw" 'org-table-wrap-region
|
2015-09-08 01:34:45 +00:00
|
|
|
|
|
2017-09-25 10:46:14 +00:00
|
|
|
|
;; Source blocks / org-babel
|
|
|
|
|
"bp" 'org-babel-previous-src-block
|
|
|
|
|
"bn" 'org-babel-next-src-block
|
|
|
|
|
"be" 'org-babel-execute-maybe
|
|
|
|
|
"bo" 'org-babel-open-src-block-result
|
|
|
|
|
"bv" 'org-babel-expand-src-block
|
|
|
|
|
"bu" 'org-babel-goto-src-block-head
|
|
|
|
|
"bg" 'org-babel-goto-named-src-block
|
|
|
|
|
"br" 'org-babel-goto-named-result
|
|
|
|
|
"bb" 'org-babel-execute-buffer
|
|
|
|
|
"bs" 'org-babel-execute-subtree
|
|
|
|
|
"bd" 'org-babel-demarcate-block
|
|
|
|
|
"bt" 'org-babel-tangle
|
|
|
|
|
"bf" 'org-babel-tangle-file
|
|
|
|
|
"bc" 'org-babel-check-src-block
|
|
|
|
|
"bj" 'org-babel-insert-header-arg
|
|
|
|
|
"bl" 'org-babel-load-in-session
|
|
|
|
|
"bi" 'org-babel-lob-ingest
|
|
|
|
|
"bI" 'org-babel-view-src-block-info
|
|
|
|
|
"bz" 'org-babel-switch-to-session
|
|
|
|
|
"bZ" 'org-babel-switch-to-session-with-code
|
|
|
|
|
"ba" 'org-babel-sha1-hash
|
|
|
|
|
"bx" 'org-babel-do-key-sequence-in-edit-buffer
|
2017-09-25 11:45:02 +00:00
|
|
|
|
"b." 'spacemacs/org-babel-transient-state/body
|
2015-11-05 16:33:46 +00:00
|
|
|
|
;; Multi-purpose keys
|
2015-11-21 18:38:55 +00:00
|
|
|
|
(or dotspacemacs-major-mode-leader-key ",") 'org-ctrl-c-ctrl-c
|
2015-11-18 00:38:05 +00:00
|
|
|
|
"*" 'org-ctrl-c-star
|
|
|
|
|
"-" 'org-ctrl-c-minus
|
2017-02-09 17:59:08 +00:00
|
|
|
|
"#" 'org-update-statistics-cookies
|
2017-10-15 16:08:54 +00:00
|
|
|
|
"RET" 'org-ctrl-c-ret
|
|
|
|
|
"M-RET" 'org-meta-return
|
2017-06-12 10:18:43 +00:00
|
|
|
|
;; attachments
|
|
|
|
|
"A" 'org-attach
|
2017-04-18 02:19:47 +00:00
|
|
|
|
;; insertion
|
2019-01-06 17:05:21 +00:00
|
|
|
|
"ib" 'org-insert-structure-template
|
2017-05-04 04:23:00 +00:00
|
|
|
|
"id" 'org-insert-drawer
|
|
|
|
|
"ie" 'org-set-effort
|
2017-04-18 02:19:47 +00:00
|
|
|
|
"if" 'org-footnote-new
|
2017-05-04 04:23:00 +00:00
|
|
|
|
"ih" 'org-insert-heading
|
|
|
|
|
"iH" 'org-insert-heading-after-current
|
2019-04-26 13:51:09 +00:00
|
|
|
|
"ii" 'org-insert-item
|
2017-05-04 04:23:00 +00:00
|
|
|
|
"iK" 'spacemacs/insert-keybinding-org
|
|
|
|
|
"il" 'org-insert-link
|
2018-03-17 21:20:20 +00:00
|
|
|
|
"in" 'org-add-note
|
2017-05-04 04:23:00 +00:00
|
|
|
|
"ip" 'org-set-property
|
|
|
|
|
"is" 'org-insert-subheading
|
2019-01-06 17:05:21 +00:00
|
|
|
|
"it" 'org-set-tags-command
|
2015-11-05 16:33:46 +00:00
|
|
|
|
;; region manipulation
|
2015-11-21 18:33:11 +00:00
|
|
|
|
"xb" (spacemacs|org-emphasize spacemacs/org-bold ?*)
|
|
|
|
|
"xc" (spacemacs|org-emphasize spacemacs/org-code ?~)
|
|
|
|
|
"xi" (spacemacs|org-emphasize spacemacs/org-italic ?/)
|
2017-05-04 04:23:00 +00:00
|
|
|
|
"xo" 'org-open-at-point
|
2015-11-21 18:33:11 +00:00
|
|
|
|
"xr" (spacemacs|org-emphasize spacemacs/org-clear ? )
|
|
|
|
|
"xs" (spacemacs|org-emphasize spacemacs/org-strike-through ?+)
|
|
|
|
|
"xu" (spacemacs|org-emphasize spacemacs/org-underline ?_)
|
2017-08-24 19:39:54 +00:00
|
|
|
|
"xv" (spacemacs|org-emphasize spacemacs/org-verbatim ?=))
|
2015-04-11 04:13:02 +00:00
|
|
|
|
|
2015-10-12 18:22:32 +00:00
|
|
|
|
;; Add global evil-leader mappings. Used to access org-agenda
|
|
|
|
|
;; functionalities – and a few others commands – from any other mode.
|
2015-11-09 20:26:39 +00:00
|
|
|
|
(spacemacs/declare-prefix "ao" "org")
|
2018-06-02 06:00:33 +00:00
|
|
|
|
(spacemacs/declare-prefix "aof" "feeds")
|
2021-01-15 06:03:53 +00:00
|
|
|
|
(spacemacs/declare-prefix "aoC" (org-clocks-prefix))
|
2020-10-06 11:08:23 +00:00
|
|
|
|
;; org-agenda
|
|
|
|
|
(when (configuration-layer/layer-used-p 'ivy)
|
|
|
|
|
(spacemacs/set-leader-keys "ao/" 'org-occur-in-agenda-files))
|
2015-11-18 00:38:05 +00:00
|
|
|
|
(spacemacs/set-leader-keys
|
2015-10-12 18:22:32 +00:00
|
|
|
|
"ao#" 'org-agenda-list-stuck-projects
|
|
|
|
|
"aoa" 'org-agenda-list
|
2019-02-09 22:44:30 +00:00
|
|
|
|
"aoo" 'org-agenda
|
2016-10-09 17:09:39 +00:00
|
|
|
|
"aoc" 'org-capture
|
2015-10-12 18:22:32 +00:00
|
|
|
|
"aoe" 'org-store-agenda-views
|
2018-06-02 06:00:33 +00:00
|
|
|
|
"aofi" 'org-feed-goto-inbox
|
|
|
|
|
"aofu" 'org-feed-update-all
|
2018-09-10 19:23:13 +00:00
|
|
|
|
|
|
|
|
|
;; Clock
|
|
|
|
|
;; These keybindings should match those under the "mC" prefix (above)
|
|
|
|
|
"aoCc" 'org-clock-cancel
|
|
|
|
|
"aoCg" 'org-clock-goto
|
|
|
|
|
"aoCi" 'org-clock-in
|
|
|
|
|
"aoCI" 'org-clock-in-last
|
2019-01-22 09:46:43 +00:00
|
|
|
|
"aoCj" 'spacemacs/org-clock-jump-to-current-clock
|
2018-09-10 19:23:13 +00:00
|
|
|
|
"aoCo" 'org-clock-out
|
|
|
|
|
"aoCr" 'org-resolve-clocks
|
|
|
|
|
|
2016-10-09 17:09:39 +00:00
|
|
|
|
"aol" 'org-store-link
|
2015-10-12 18:22:32 +00:00
|
|
|
|
"aom" 'org-tags-view
|
|
|
|
|
"aos" 'org-search-view
|
2017-05-10 23:36:00 +00:00
|
|
|
|
"aot" 'org-todo-list
|
|
|
|
|
;; SPC C- capture/colors
|
|
|
|
|
"Cc" 'org-capture)
|
2016-02-17 08:28:51 +00:00
|
|
|
|
|
|
|
|
|
(define-key global-map "\C-cl" 'org-store-link)
|
|
|
|
|
(define-key global-map "\C-ca" 'org-agenda)
|
|
|
|
|
(define-key global-map "\C-cc" 'org-capture))
|
2015-04-11 04:13:02 +00:00
|
|
|
|
:config
|
|
|
|
|
(progn
|
2020-11-02 04:59:44 +00:00
|
|
|
|
;; Activate evil insert state after these commands.
|
|
|
|
|
(dolist (fn '(org-insert-drawer
|
|
|
|
|
org-insert-heading
|
|
|
|
|
org-insert-item
|
|
|
|
|
org-insert-structure-template))
|
|
|
|
|
(advice-add fn :after #'spacemacs//org-maybe-activate-evil-insert))
|
|
|
|
|
|
2015-06-03 03:27:00 +00:00
|
|
|
|
;; We add this key mapping because an Emacs user can change
|
|
|
|
|
;; `dotspacemacs-major-mode-emacs-leader-key' to `C-c' and the key binding
|
|
|
|
|
;; C-c ' is shadowed by `spacemacs/default-pop-shell', effectively making
|
|
|
|
|
;; the Emacs user unable to exit src block editing.
|
2016-03-23 14:17:46 +00:00
|
|
|
|
(define-key org-src-mode-map
|
|
|
|
|
(kbd (concat dotspacemacs-major-mode-emacs-leader-key " '"))
|
|
|
|
|
'org-edit-src-exit)
|
2015-06-03 03:27:00 +00:00
|
|
|
|
|
2015-11-17 18:52:20 +00:00
|
|
|
|
;; Evilify the calendar tool on C-c .
|
|
|
|
|
(unless (eq 'emacs dotspacemacs-editing-style)
|
|
|
|
|
(define-key org-read-date-minibuffer-local-map (kbd "M-h")
|
2016-03-23 14:17:46 +00:00
|
|
|
|
(lambda () (interactive)
|
|
|
|
|
(org-eval-in-calendar '(calendar-backward-day 1))))
|
2015-11-17 18:52:20 +00:00
|
|
|
|
(define-key org-read-date-minibuffer-local-map (kbd "M-l")
|
2016-03-23 14:17:46 +00:00
|
|
|
|
(lambda () (interactive)
|
|
|
|
|
(org-eval-in-calendar '(calendar-forward-day 1))))
|
2015-11-17 18:52:20 +00:00
|
|
|
|
(define-key org-read-date-minibuffer-local-map (kbd "M-k")
|
2016-03-23 14:17:46 +00:00
|
|
|
|
(lambda () (interactive)
|
|
|
|
|
(org-eval-in-calendar '(calendar-backward-week 1))))
|
2015-11-17 18:52:20 +00:00
|
|
|
|
(define-key org-read-date-minibuffer-local-map (kbd "M-j")
|
2016-03-23 14:17:46 +00:00
|
|
|
|
(lambda () (interactive)
|
|
|
|
|
(org-eval-in-calendar '(calendar-forward-week 1))))
|
2015-11-17 18:52:20 +00:00
|
|
|
|
(define-key org-read-date-minibuffer-local-map (kbd "M-H")
|
2016-03-23 14:17:46 +00:00
|
|
|
|
(lambda () (interactive)
|
|
|
|
|
(org-eval-in-calendar '(calendar-backward-month 1))))
|
2015-11-17 18:52:20 +00:00
|
|
|
|
(define-key org-read-date-minibuffer-local-map (kbd "M-L")
|
2016-03-23 14:17:46 +00:00
|
|
|
|
(lambda () (interactive)
|
|
|
|
|
(org-eval-in-calendar '(calendar-forward-month 1))))
|
2015-11-17 18:52:20 +00:00
|
|
|
|
(define-key org-read-date-minibuffer-local-map (kbd "M-K")
|
2016-03-23 14:17:46 +00:00
|
|
|
|
(lambda () (interactive)
|
|
|
|
|
(org-eval-in-calendar '(calendar-backward-year 1))))
|
2015-11-17 18:52:20 +00:00
|
|
|
|
(define-key org-read-date-minibuffer-local-map (kbd "M-J")
|
2016-03-23 14:17:46 +00:00
|
|
|
|
(lambda () (interactive)
|
2017-09-25 11:45:02 +00:00
|
|
|
|
(org-eval-in-calendar '(calendar-forward-year 1)))))
|
|
|
|
|
|
|
|
|
|
(spacemacs|define-transient-state org-babel
|
|
|
|
|
:title "Org Babel Transient state"
|
|
|
|
|
:doc "
|
|
|
|
|
[_j_/_k_] navigate src blocks [_e_] execute src block
|
2018-10-22 08:09:55 +00:00
|
|
|
|
[_g_]^^ goto named block [_'_] edit src block
|
|
|
|
|
[_z_]^^ recenter screen [_q_] quit"
|
2017-09-25 11:45:02 +00:00
|
|
|
|
:bindings
|
|
|
|
|
("q" nil :exit t)
|
|
|
|
|
("j" org-babel-next-src-block)
|
|
|
|
|
("k" org-babel-previous-src-block)
|
|
|
|
|
("g" org-babel-goto-named-src-block)
|
2018-10-22 08:09:55 +00:00
|
|
|
|
("z" recenter-top-bottom)
|
2020-05-21 13:20:03 +00:00
|
|
|
|
("e" org-babel-execute-maybe)
|
2017-09-25 11:45:02 +00:00
|
|
|
|
("'" org-edit-special :exit t)))))
|
2015-11-17 18:52:20 +00:00
|
|
|
|
|
|
|
|
|
(defun org/init-org-agenda ()
|
|
|
|
|
(use-package org-agenda
|
2018-03-04 04:37:53 +00:00
|
|
|
|
:defer t
|
2015-11-17 18:52:20 +00:00
|
|
|
|
:init
|
2016-01-08 09:33:50 +00:00
|
|
|
|
(progn
|
|
|
|
|
(setq org-agenda-restore-windows-after-quit t)
|
2021-02-07 08:13:26 +00:00
|
|
|
|
(dolist (prefix `(("mC" . ,(org-clocks-prefix))
|
|
|
|
|
("md" . "dates")
|
|
|
|
|
("mi" . "insert")
|
|
|
|
|
("ms" . "trees/subtrees")))
|
|
|
|
|
(spacemacs/declare-prefix-for-mode 'org-agenda-mode
|
|
|
|
|
(car prefix) (cdr prefix)))
|
2016-01-08 09:33:50 +00:00
|
|
|
|
(spacemacs/set-leader-keys-for-major-mode 'org-agenda-mode
|
2021-01-07 14:49:03 +00:00
|
|
|
|
(or dotspacemacs-major-mode-leader-key ",") 'org-agenda-ctrl-c-ctrl-c
|
2016-01-23 16:31:51 +00:00
|
|
|
|
"a" 'org-agenda
|
2021-01-07 14:49:03 +00:00
|
|
|
|
"c" 'org-agenda-capture
|
2017-05-04 04:23:00 +00:00
|
|
|
|
"Cc" 'org-agenda-clock-cancel
|
|
|
|
|
"Ci" 'org-agenda-clock-in
|
|
|
|
|
"Co" 'org-agenda-clock-out
|
2021-01-07 14:49:03 +00:00
|
|
|
|
"Cj" 'org-agenda-clock-goto
|
2017-05-04 04:23:00 +00:00
|
|
|
|
"dd" 'org-agenda-deadline
|
|
|
|
|
"ds" 'org-agenda-schedule
|
|
|
|
|
"ie" 'org-agenda-set-effort
|
|
|
|
|
"ip" 'org-agenda-set-property
|
2020-03-28 20:11:59 +00:00
|
|
|
|
"iP" 'org-agenda-priority
|
2017-05-04 04:23:00 +00:00
|
|
|
|
"it" 'org-agenda-set-tags
|
|
|
|
|
"sr" 'org-agenda-refile)
|
2016-02-20 14:30:18 +00:00
|
|
|
|
(spacemacs|define-transient-state org-agenda
|
2019-01-22 09:46:43 +00:00
|
|
|
|
:title "Org-agenda transient state"
|
|
|
|
|
:on-enter (setq which-key-inhibit t)
|
|
|
|
|
:on-exit (setq which-key-inhibit nil)
|
2020-12-31 11:03:13 +00:00
|
|
|
|
:evil-leader-for-mode (org-agenda-mode . ".")
|
2019-01-22 09:46:43 +00:00
|
|
|
|
:foreign-keys run
|
|
|
|
|
:doc
|
|
|
|
|
"
|
2017-10-04 20:20:14 +00:00
|
|
|
|
Headline^^ Visit entry^^ Filter^^ Date^^ Toggle mode^^ View^^ Clock^^ Other^^
|
|
|
|
|
--------^^--------- -----------^^------------ ------^^----------------- ----^^------------- -----------^^------ ----^^--------- -----^^------ -----^^-----------
|
|
|
|
|
[_ht_] set status [_SPC_] in other window [_ft_] by tag [_ds_] schedule [_tf_] follow [_vd_] day [_cI_] in [_gr_] reload
|
|
|
|
|
[_hk_] kill [_TAB_] & go to location [_fr_] refine by tag [_dS_] un-schedule [_tl_] log [_vw_] week [_cO_] out [_._] go to today
|
|
|
|
|
[_hr_] refile [_RET_] & del other windows [_fc_] by category [_dd_] set deadline [_ta_] archive [_vt_] fortnight [_cq_] cancel [_gd_] go to date
|
|
|
|
|
[_hA_] archive [_o_] link [_fh_] by top headline [_dD_] remove deadline [_tr_] clock report [_vm_] month [_cj_] jump ^^
|
2019-05-12 14:15:09 +00:00
|
|
|
|
[_h:_] set tags ^^ [_fx_] by regexp [_dt_] timestamp [_ti_] clock issues [_vy_] year ^^ ^^
|
2019-04-20 16:41:15 +00:00
|
|
|
|
[_hp_] set priority ^^ [_fd_] delete all filters [_+_] do later [_td_] diaries [_vn_] next span ^^ ^^
|
2017-10-04 20:20:14 +00:00
|
|
|
|
^^ ^^ ^^ [_-_] do earlier ^^ [_vp_] prev span ^^ ^^
|
|
|
|
|
^^ ^^ ^^ ^^ ^^ [_vr_] reset ^^ ^^
|
2016-02-20 14:30:18 +00:00
|
|
|
|
[_q_] quit
|
|
|
|
|
"
|
2019-01-22 09:46:43 +00:00
|
|
|
|
:bindings
|
|
|
|
|
;; Entry
|
|
|
|
|
("h:" org-agenda-set-tags)
|
|
|
|
|
("hA" org-agenda-archive-default)
|
|
|
|
|
("hk" org-agenda-kill)
|
|
|
|
|
("hp" org-agenda-priority)
|
|
|
|
|
("hr" org-agenda-refile)
|
|
|
|
|
("ht" org-agenda-todo)
|
|
|
|
|
|
|
|
|
|
;; Visit entry
|
|
|
|
|
("SPC" org-agenda-show-and-scroll-up)
|
|
|
|
|
("<tab>" org-agenda-goto :exit t)
|
|
|
|
|
("TAB" org-agenda-goto :exit t)
|
|
|
|
|
("RET" org-agenda-switch-to :exit t)
|
|
|
|
|
("o" link-hint-open-link :exit t)
|
|
|
|
|
|
|
|
|
|
;; Date
|
2019-05-12 14:16:21 +00:00
|
|
|
|
("+" org-agenda-do-date-later)
|
|
|
|
|
("-" org-agenda-do-date-earlier)
|
|
|
|
|
("dd" org-agenda-deadline)
|
|
|
|
|
("dD" (lambda () (interactive)
|
|
|
|
|
(let ((current-prefix-arg '(4)))
|
|
|
|
|
(call-interactively 'org-agenda-deadline))))
|
2019-01-22 09:46:43 +00:00
|
|
|
|
("ds" org-agenda-schedule)
|
|
|
|
|
("dS" (lambda () (interactive)
|
|
|
|
|
(let ((current-prefix-arg '(4)))
|
2017-10-04 20:20:14 +00:00
|
|
|
|
(call-interactively 'org-agenda-schedule))))
|
2019-01-22 09:46:43 +00:00
|
|
|
|
("dt" org-agenda-date-prompt)
|
|
|
|
|
|
|
|
|
|
;; View
|
|
|
|
|
("vd" org-agenda-day-view)
|
|
|
|
|
("vm" org-agenda-month-view)
|
|
|
|
|
("vn" org-agenda-later)
|
|
|
|
|
("vp" org-agenda-earlier)
|
|
|
|
|
("vr" org-agenda-reset-view)
|
2019-05-12 14:16:21 +00:00
|
|
|
|
("vt" org-agenda-fortnight-view)
|
|
|
|
|
("vw" org-agenda-week-view)
|
|
|
|
|
("vy" org-agenda-year-view)
|
2019-01-22 09:46:43 +00:00
|
|
|
|
|
|
|
|
|
;; Toggle mode
|
2019-05-12 14:15:09 +00:00
|
|
|
|
("ta" org-agenda-archives-mode)
|
|
|
|
|
("td" org-agenda-toggle-diary)
|
2019-01-22 09:46:43 +00:00
|
|
|
|
("tf" org-agenda-follow-mode)
|
2019-05-12 14:15:09 +00:00
|
|
|
|
("ti" org-agenda-show-clocking-issues)
|
2019-01-22 09:46:43 +00:00
|
|
|
|
("tl" org-agenda-log-mode)
|
|
|
|
|
("tr" org-agenda-clockreport-mode)
|
|
|
|
|
|
|
|
|
|
;; Filter
|
|
|
|
|
("fc" org-agenda-filter-by-category)
|
2019-05-12 14:16:21 +00:00
|
|
|
|
("fd" org-agenda-filter-remove-all)
|
2019-01-22 09:46:43 +00:00
|
|
|
|
("fh" org-agenda-filter-by-top-headline)
|
2019-05-12 14:16:21 +00:00
|
|
|
|
("fr" org-agenda-filter-by-tag-refine)
|
|
|
|
|
("ft" org-agenda-filter-by-tag)
|
2019-01-22 09:46:43 +00:00
|
|
|
|
("fx" org-agenda-filter-by-regexp)
|
|
|
|
|
|
|
|
|
|
;; Clock
|
|
|
|
|
("cI" org-agenda-clock-in :exit t)
|
|
|
|
|
("cj" org-agenda-clock-goto :exit t)
|
|
|
|
|
("cO" org-agenda-clock-out)
|
|
|
|
|
("cq" org-agenda-clock-cancel)
|
|
|
|
|
|
|
|
|
|
;; Other
|
|
|
|
|
("q" nil :exit t)
|
|
|
|
|
("gr" org-agenda-redo)
|
|
|
|
|
("." org-agenda-goto-today)
|
|
|
|
|
("gd" org-agenda-goto-date)))
|
2015-11-17 18:52:20 +00:00
|
|
|
|
:config
|
2021-02-07 22:19:55 +00:00
|
|
|
|
(when org-enable-org-contacts-support
|
|
|
|
|
(use-package org-contacts))
|
2015-11-17 18:52:20 +00:00
|
|
|
|
(evilified-state-evilify-map org-agenda-mode-map
|
|
|
|
|
:mode org-agenda-mode
|
|
|
|
|
:bindings
|
|
|
|
|
"j" 'org-agenda-next-line
|
|
|
|
|
"k" 'org-agenda-previous-line
|
2021-01-03 10:36:48 +00:00
|
|
|
|
"K" nil
|
2018-01-21 14:33:31 +00:00
|
|
|
|
;; C-h should not be rebound by evilification so we unshadow it manually
|
|
|
|
|
;; TODO add the rule in auto-evilification to ignore C-h (like we do
|
|
|
|
|
;; with C-g)
|
2018-01-21 10:38:19 +00:00
|
|
|
|
(kbd "C-h") nil
|
2015-11-17 18:52:20 +00:00
|
|
|
|
(kbd "M-j") 'org-agenda-next-item
|
|
|
|
|
(kbd "M-k") 'org-agenda-previous-item
|
|
|
|
|
(kbd "M-h") 'org-agenda-earlier
|
|
|
|
|
(kbd "M-l") 'org-agenda-later
|
|
|
|
|
(kbd "gd") 'org-agenda-toggle-time-grid
|
2016-01-08 09:33:50 +00:00
|
|
|
|
(kbd "gr") 'org-agenda-redo
|
|
|
|
|
(kbd "M-RET") 'org-agenda-show-and-scroll-up
|
2016-02-20 14:30:18 +00:00
|
|
|
|
(kbd "M-SPC") 'spacemacs/org-agenda-transient-state/body
|
|
|
|
|
(kbd "s-M-SPC") 'spacemacs/org-agenda-transient-state/body)))
|
2015-04-11 04:13:02 +00:00
|
|
|
|
|
2021-03-14 21:18:05 +00:00
|
|
|
|
(defun org/init-org-wild-notifier ()
|
|
|
|
|
(use-package org-wild-notifier
|
|
|
|
|
:defer t
|
|
|
|
|
:init
|
|
|
|
|
(when org-start-notification-daemon-on-startup
|
|
|
|
|
(org-wild-notifier-mode))))
|
|
|
|
|
|
2017-06-13 10:52:20 +00:00
|
|
|
|
(defun org/init-org-brain ()
|
|
|
|
|
(use-package org-brain
|
2018-03-04 04:37:53 +00:00
|
|
|
|
:defer t
|
2017-06-13 10:52:20 +00:00
|
|
|
|
:init
|
|
|
|
|
(progn
|
2019-02-09 23:20:32 +00:00
|
|
|
|
(spacemacs/declare-prefix "aoB" "org-brain")
|
2017-06-13 10:52:20 +00:00
|
|
|
|
(spacemacs/set-leader-keys
|
2019-02-09 23:20:32 +00:00
|
|
|
|
"aoBv" 'org-brain-visualize
|
|
|
|
|
"aoBa" 'org-brain-agenda)
|
|
|
|
|
(spacemacs/declare-prefix-for-mode 'org-mode "mB" "org-brain")
|
|
|
|
|
(spacemacs/declare-prefix-for-mode 'org-mode "mBa" "add")
|
|
|
|
|
(spacemacs/declare-prefix-for-mode 'org-mode "mBg" "goto")
|
|
|
|
|
(spacemacs/set-leader-keys-for-major-mode 'org-mode
|
|
|
|
|
"Bv" 'org-brain-visualize
|
2019-05-20 21:52:23 +00:00
|
|
|
|
"Bac" 'org-brain-add-child
|
|
|
|
|
"Bah" 'org-brain-add-child-headline
|
2019-02-09 23:20:32 +00:00
|
|
|
|
"Bap" 'org-brain-add-parent
|
2019-05-20 21:52:23 +00:00
|
|
|
|
"Bar" 'org-brain-add-resource
|
2019-05-20 13:20:48 +00:00
|
|
|
|
"Baf" 'org-brain-add-friendship
|
2019-05-20 21:52:23 +00:00
|
|
|
|
"Bgg" 'org-brain-goto
|
2019-02-09 23:20:32 +00:00
|
|
|
|
"Bgc" 'org-brain-goto-child
|
|
|
|
|
"Bgp" 'org-brain-goto-parent
|
|
|
|
|
"Bgf" 'org-brain-goto-friend
|
|
|
|
|
"BR" 'org-brain-refile
|
|
|
|
|
"Bx" 'org-brain-delete-entry)
|
2021-02-26 11:39:34 +00:00
|
|
|
|
(evil-set-initial-state 'org-brain-visualize-mode 'emacs)
|
|
|
|
|
(when (memq dotspacemacs-editing-style '(vim hybrid))
|
|
|
|
|
(with-eval-after-load 'org-brain
|
|
|
|
|
(define-key org-brain-visualize-mode-map (kbd "SPC") 'spacemacs-cmds))))))
|
2017-06-13 10:52:20 +00:00
|
|
|
|
|
2016-09-03 22:28:24 +00:00
|
|
|
|
(defun org/init-org-expiry ()
|
|
|
|
|
(use-package org-expiry
|
|
|
|
|
:commands (org-expiry-insinuate
|
|
|
|
|
org-expiry-deinsinuate
|
|
|
|
|
org-expiry-insert-created
|
|
|
|
|
org-expiry-insert-expiry
|
|
|
|
|
org-expiry-add-keyword
|
|
|
|
|
org-expiry-archive-subtree
|
|
|
|
|
org-expiry-process-entry
|
|
|
|
|
org-expiry-process-entries)))
|
|
|
|
|
|
2016-04-22 03:26:57 +00:00
|
|
|
|
(defun org/init-org-download ()
|
|
|
|
|
(use-package org-download
|
|
|
|
|
:commands (org-download-enable
|
|
|
|
|
org-download-yank
|
|
|
|
|
org-download-screenshot)
|
|
|
|
|
:init
|
|
|
|
|
(progn
|
|
|
|
|
(add-hook 'org-mode-hook 'org-download-enable)
|
2017-05-04 04:23:00 +00:00
|
|
|
|
(spacemacs/declare-prefix-for-mode 'org-mode "miD" "download")
|
2016-04-22 03:26:57 +00:00
|
|
|
|
(spacemacs/set-leader-keys-for-major-mode 'org-mode
|
2017-05-04 04:23:00 +00:00
|
|
|
|
"iDy" 'org-download-yank
|
|
|
|
|
"iDs" 'org-download-screenshot))))
|
2016-04-22 03:26:57 +00:00
|
|
|
|
|
2018-10-16 12:30:48 +00:00
|
|
|
|
(defun org/init-org-jira ()
|
|
|
|
|
(use-package org-jira
|
|
|
|
|
:defer t
|
|
|
|
|
:init
|
|
|
|
|
(progn
|
|
|
|
|
(spacemacs/declare-prefix "aoJ" "jira")
|
|
|
|
|
(spacemacs/declare-prefix "aoJp" "projects")
|
|
|
|
|
(spacemacs/declare-prefix "aoJi" "issues")
|
|
|
|
|
(spacemacs/declare-prefix "aoJs" "subtasks")
|
|
|
|
|
(spacemacs/declare-prefix "aoJc" "comments")
|
|
|
|
|
(spacemacs/declare-prefix "aoJt" "todos")
|
|
|
|
|
(spacemacs/set-leader-keys
|
|
|
|
|
"aoJpg" 'org-jira-get-projects
|
|
|
|
|
"aoJib" 'org-jira-browse-issue
|
|
|
|
|
"aoJig" 'org-jira-get-issues
|
|
|
|
|
"aoJih" 'org-jira-get-issues-headonly
|
|
|
|
|
"aoJif" 'org-jira-get-issues-from-filter-headonly
|
|
|
|
|
"aoJiu" 'org-jira-update-issue
|
|
|
|
|
"aoJiw" 'org-jira-progress-issue
|
|
|
|
|
"aoJir" 'org-jira-refresh-issue
|
|
|
|
|
"aoJic" 'org-jira-create-issue
|
|
|
|
|
"aoJiy" 'org-jira-copy-current-issue-key
|
|
|
|
|
"aoJsc" 'org-jira-create-subtask
|
|
|
|
|
"aoJsg" 'org-jira-get-subtasks
|
|
|
|
|
"aoJcu" 'org-jira-update-comment
|
2020-10-02 13:12:12 +00:00
|
|
|
|
"aoJtj" 'org-jira-todo-to-jira)
|
|
|
|
|
(spacemacs/declare-prefix-for-mode 'org-mode "mmj" "jira")
|
|
|
|
|
(spacemacs/declare-prefix-for-mode 'org-mode "mmjp" "projects")
|
|
|
|
|
(spacemacs/declare-prefix-for-mode 'org-mode "mmji" "issues")
|
|
|
|
|
(spacemacs/declare-prefix-for-mode 'org-mode "mmjs" "subtasks")
|
|
|
|
|
(spacemacs/declare-prefix-for-mode 'org-mode "mmjc" "comments")
|
|
|
|
|
(spacemacs/declare-prefix-for-mode 'org-mode "mmjt" "todos")
|
|
|
|
|
(spacemacs/set-leader-keys-for-major-mode 'org-mode
|
|
|
|
|
"mjpg" 'org-jira-get-projects
|
|
|
|
|
"mjib" 'org-jira-browse-issue
|
|
|
|
|
"mjig" 'org-jira-get-issues
|
|
|
|
|
"mjih" 'org-jira-get-issues-headonly
|
|
|
|
|
"mjif" 'org-jira-get-issues-from-filter-headonly
|
|
|
|
|
"mjiu" 'org-jira-update-issue
|
|
|
|
|
"mjiw" 'org-jira-progress-issue
|
|
|
|
|
"mjir" 'org-jira-refresh-issue
|
|
|
|
|
"mjic" 'org-jira-create-issue
|
|
|
|
|
"mjiy" 'org-jira-copy-current-issue-key
|
|
|
|
|
"mjsc" 'org-jira-create-subtask
|
|
|
|
|
"mjsg" 'org-jira-get-subtasks
|
|
|
|
|
"mjcu" 'org-jira-update-comment
|
|
|
|
|
"mjtj" 'org-jira-todo-to-jira))))
|
2018-10-16 12:30:48 +00:00
|
|
|
|
|
2015-09-24 02:04:07 +00:00
|
|
|
|
(defun org/init-org-mime ()
|
|
|
|
|
(use-package org-mime
|
2018-03-04 04:37:53 +00:00
|
|
|
|
:defer t
|
2015-09-24 02:04:07 +00:00
|
|
|
|
:init
|
|
|
|
|
(progn
|
2015-11-18 00:38:05 +00:00
|
|
|
|
(spacemacs/set-leader-keys-for-major-mode 'message-mode
|
2017-05-04 04:23:00 +00:00
|
|
|
|
"em" 'org-mime-htmlize)
|
2015-11-18 00:38:05 +00:00
|
|
|
|
(spacemacs/set-leader-keys-for-major-mode 'org-mode
|
2019-12-12 17:11:45 +00:00
|
|
|
|
"em" 'org-mime-org-buffer-htmlize
|
|
|
|
|
"es" 'org-mime-org-subtree-htmlize))))
|
2015-09-24 02:04:07 +00:00
|
|
|
|
|
2015-04-11 14:44:07 +00:00
|
|
|
|
(defun org/init-org-pomodoro ()
|
2015-04-11 04:13:02 +00:00
|
|
|
|
(use-package org-pomodoro
|
2018-03-04 04:37:53 +00:00
|
|
|
|
:defer t
|
2015-04-11 04:13:02 +00:00
|
|
|
|
:init
|
|
|
|
|
(progn
|
2015-08-23 01:47:30 +00:00
|
|
|
|
(when (spacemacs/system-is-mac)
|
2015-04-11 04:13:02 +00:00
|
|
|
|
(setq org-pomodoro-audio-player "/usr/bin/afplay"))
|
2015-11-18 00:38:05 +00:00
|
|
|
|
(spacemacs/set-leader-keys-for-major-mode 'org-mode
|
2017-05-04 04:23:00 +00:00
|
|
|
|
"Cp" 'org-pomodoro)
|
2019-07-03 15:41:39 +00:00
|
|
|
|
(spacemacs/set-leader-keys-for-major-mode 'org-journal-mode
|
|
|
|
|
"Cp" 'org-pomodoro)
|
2016-07-05 03:52:07 +00:00
|
|
|
|
(spacemacs/set-leader-keys-for-major-mode 'org-agenda-mode
|
2017-05-04 04:23:00 +00:00
|
|
|
|
"Cp" 'org-pomodoro))))
|
2015-04-11 04:13:02 +00:00
|
|
|
|
|
2015-05-14 04:17:12 +00:00
|
|
|
|
(defun org/init-org-present ()
|
|
|
|
|
(use-package org-present
|
2018-03-04 04:37:53 +00:00
|
|
|
|
:defer t
|
2015-05-14 04:17:12 +00:00
|
|
|
|
:init
|
|
|
|
|
(progn
|
|
|
|
|
(defun spacemacs//org-present-start ()
|
|
|
|
|
"Initiate `org-present' mode"
|
|
|
|
|
(org-present-big)
|
|
|
|
|
(org-display-inline-images)
|
|
|
|
|
(org-present-hide-cursor)
|
|
|
|
|
(org-present-read-only)
|
2019-12-17 09:15:14 +00:00
|
|
|
|
(evil-define-key 'normal org-present-mode-keymap
|
|
|
|
|
"h" 'org-present-prev
|
|
|
|
|
(kbd "<left>") 'org-present-prev
|
|
|
|
|
"l" 'org-present-next
|
|
|
|
|
(kbd "<right>") 'org-present-next
|
|
|
|
|
"q" 'org-present-quit)
|
|
|
|
|
;; evil-normal-state seems to be required to load the above key bindings
|
|
|
|
|
(evil-normal-state))
|
2015-05-14 04:17:12 +00:00
|
|
|
|
(defun spacemacs//org-present-end ()
|
|
|
|
|
"Terminate `org-present' mode"
|
|
|
|
|
(org-present-small)
|
2020-01-24 17:27:37 +00:00
|
|
|
|
(if (not org-startup-with-inline-images)
|
|
|
|
|
(org-remove-inline-images))
|
2015-05-14 04:17:12 +00:00
|
|
|
|
(org-present-show-cursor)
|
2019-12-17 09:15:14 +00:00
|
|
|
|
(org-present-read-write))
|
2015-05-14 04:17:12 +00:00
|
|
|
|
(add-hook 'org-present-mode-hook 'spacemacs//org-present-start)
|
|
|
|
|
(add-hook 'org-present-mode-quit-hook 'spacemacs//org-present-end))))
|
|
|
|
|
|
2019-05-10 12:41:00 +00:00
|
|
|
|
(defun org/init-org-cliplink ()
|
|
|
|
|
(use-package org-cliplink
|
|
|
|
|
:defer t
|
|
|
|
|
:init
|
|
|
|
|
(spacemacs/set-leader-keys-for-major-mode 'org-mode
|
|
|
|
|
"iL" 'org-cliplink)))
|
|
|
|
|
|
2020-09-18 18:00:00 +00:00
|
|
|
|
(defun org/init-org-rich-yank ()
|
|
|
|
|
(use-package org-rich-yank
|
2020-09-18 18:08:14 +00:00
|
|
|
|
:ensure t
|
|
|
|
|
:demand t
|
2020-09-18 18:00:00 +00:00
|
|
|
|
:init
|
|
|
|
|
(spacemacs/set-leader-keys-for-major-mode 'org-mode
|
|
|
|
|
;; yank is a misnomer for this function which actually puts/pastes
|
|
|
|
|
;; ir = "insert rich"
|
|
|
|
|
"ir" 'org-rich-yank)))
|
|
|
|
|
|
2016-06-14 09:35:54 +00:00
|
|
|
|
(defun org/init-org-projectile ()
|
|
|
|
|
(use-package org-projectile
|
2017-07-29 19:19:17 +00:00
|
|
|
|
:commands (org-projectile-location-for-project)
|
2015-04-11 04:13:02 +00:00
|
|
|
|
:init
|
|
|
|
|
(progn
|
2015-11-18 00:38:05 +00:00
|
|
|
|
(spacemacs/set-leader-keys
|
2016-06-14 09:35:54 +00:00
|
|
|
|
"aop" 'org-projectile/capture
|
2016-09-01 02:23:09 +00:00
|
|
|
|
"po" 'org-projectile/goto-todos)
|
2017-08-06 09:31:25 +00:00
|
|
|
|
(with-eval-after-load 'org-capture
|
|
|
|
|
(require 'org-projectile)))
|
2016-04-04 14:09:59 +00:00
|
|
|
|
:config
|
2016-06-14 09:35:54 +00:00
|
|
|
|
(if (file-name-absolute-p org-projectile-file)
|
|
|
|
|
(progn
|
2017-07-29 19:19:17 +00:00
|
|
|
|
(setq org-projectile-projects-file org-projectile-file)
|
2017-08-03 13:06:16 +00:00
|
|
|
|
(push (org-projectile-project-todo-entry :empty-lines 1)
|
2016-06-14 09:35:54 +00:00
|
|
|
|
org-capture-templates))
|
2017-07-29 19:19:17 +00:00
|
|
|
|
(org-projectile-per-project)
|
|
|
|
|
(setq org-projectile-per-project-filepath org-projectile-file))))
|
2015-04-13 06:01:49 +00:00
|
|
|
|
|
2019-01-30 17:52:11 +00:00
|
|
|
|
(defun org/pre-init-ox-epub ()
|
|
|
|
|
(spacemacs|use-package-add-hook org :post-config (require 'ox-epub)))
|
|
|
|
|
(defun org/init-ox-epub ())
|
|
|
|
|
|
2018-01-11 04:57:18 +00:00
|
|
|
|
(defun org/pre-init-ox-twbs ()
|
2016-09-24 01:06:57 +00:00
|
|
|
|
(spacemacs|use-package-add-hook org :post-config (require 'ox-twbs)))
|
2018-01-11 04:57:18 +00:00
|
|
|
|
(defun org/init-ox-twbs ())
|
2016-09-24 01:06:57 +00:00
|
|
|
|
|
2018-01-11 04:57:18 +00:00
|
|
|
|
(defun org/pre-init-ox-gfm ()
|
2016-06-02 02:37:16 +00:00
|
|
|
|
(spacemacs|use-package-add-hook org :post-config (require 'ox-gfm)))
|
2018-01-11 04:57:18 +00:00
|
|
|
|
(defun org/init-ox-gfm ())
|
2016-06-02 02:07:24 +00:00
|
|
|
|
|
2019-03-18 11:54:02 +00:00
|
|
|
|
(defun org/pre-init-org-re-reveal ()
|
|
|
|
|
(spacemacs|use-package-add-hook org :post-config (require 'org-re-reveal)))
|
|
|
|
|
(defun org/init-org-re-reveal ())
|
2016-01-18 03:06:04 +00:00
|
|
|
|
|
2015-11-09 04:51:29 +00:00
|
|
|
|
(defun org/post-init-persp-mode ()
|
|
|
|
|
(spacemacs|define-custom-layout "@Org"
|
|
|
|
|
:binding "o"
|
|
|
|
|
:body
|
2016-08-07 19:04:04 +00:00
|
|
|
|
(let ((agenda-files (org-agenda-files)))
|
2016-08-07 19:05:31 +00:00
|
|
|
|
(if agenda-files
|
2021-01-05 22:30:08 +00:00
|
|
|
|
(progn (find-file (if org-persp-startup-org-file org-persp-startup-org-file (first agenda-files)))
|
|
|
|
|
(if org-persp-startup-with-agenda (org-agenda nil org-persp-startup-with-agenda)
|
2021-02-07 08:13:26 +00:00
|
|
|
|
))
|
2016-08-07 19:05:31 +00:00
|
|
|
|
(user-error "Error: No agenda files configured, nothing to display.")))))
|
2016-09-07 03:10:13 +00:00
|
|
|
|
|
2021-01-15 06:03:53 +00:00
|
|
|
|
(defun org/init-org-contacts ()
|
|
|
|
|
(use-package org-contacts
|
2021-02-07 08:13:26 +00:00
|
|
|
|
:defer t
|
|
|
|
|
:init
|
|
|
|
|
(progn
|
|
|
|
|
(spacemacs/set-leader-keys-for-major-mode 'org-agenda-mode
|
|
|
|
|
"Cf" 'org-contacts-find-file)
|
|
|
|
|
(spacemacs/set-leader-keys-for-major-mode 'org-mode
|
|
|
|
|
"Cf" 'org-contacts-find-file)
|
|
|
|
|
(spacemacs/set-leader-keys
|
|
|
|
|
"aoCf" 'org-contacts-find-file))))
|
2021-01-15 06:03:53 +00:00
|
|
|
|
|
|
|
|
|
(defun org/init-org-vcard ()
|
|
|
|
|
(use-package org-vcard
|
|
|
|
|
:defer t))
|
|
|
|
|
|
2016-09-07 03:10:13 +00:00
|
|
|
|
(defun org/init-org-journal ()
|
|
|
|
|
(use-package org-journal
|
2018-03-04 04:37:53 +00:00
|
|
|
|
:defer t
|
2016-12-14 18:06:24 +00:00
|
|
|
|
:commands (org-journal-new-entry org-journal-search-forever)
|
2016-09-07 03:10:13 +00:00
|
|
|
|
:init
|
|
|
|
|
(progn
|
2016-12-14 18:06:24 +00:00
|
|
|
|
(spacemacs/declare-prefix "aoj" "org-journal")
|
|
|
|
|
(spacemacs/set-leader-keys
|
2021-01-05 23:28:43 +00:00
|
|
|
|
"aojf" 'org-journal-open-current-journal-file
|
2016-12-14 18:06:24 +00:00
|
|
|
|
"aojj" 'org-journal-new-entry
|
2020-04-01 00:01:38 +00:00
|
|
|
|
"aojs" 'org-journal-search-forever
|
|
|
|
|
"aojt" 'org-journal-new-scheduled-entry
|
|
|
|
|
"aojv" 'org-journal-schedule-view)
|
2016-09-07 03:10:13 +00:00
|
|
|
|
|
2018-11-24 09:32:09 +00:00
|
|
|
|
(setq spacemacs-org-journal-mode-map (copy-keymap spacemacs-org-mode-map))
|
|
|
|
|
|
2016-09-07 03:10:13 +00:00
|
|
|
|
(spacemacs/set-leader-keys-for-major-mode 'calendar-mode
|
|
|
|
|
"r" 'org-journal-read-entry
|
|
|
|
|
"i" 'org-journal-new-date-entry
|
2016-12-14 18:06:24 +00:00
|
|
|
|
"n" 'org-journal-next-entry
|
|
|
|
|
"p" 'org-journal-previous-entry
|
|
|
|
|
"s" 'org-journal-search-forever
|
|
|
|
|
"w" 'org-journal-search-calendar-week
|
|
|
|
|
"m" 'org-journal-search-calendar-month
|
|
|
|
|
"y" 'org-journal-search-calendar-year)
|
2016-09-07 03:10:13 +00:00
|
|
|
|
|
|
|
|
|
(spacemacs/set-leader-keys-for-major-mode 'org-journal-mode
|
|
|
|
|
"j" 'org-journal-new-entry
|
2020-07-03 11:09:18 +00:00
|
|
|
|
"n" 'org-journal-next-entry
|
|
|
|
|
"p" 'org-journal-previous-entry)
|
2018-11-24 09:32:09 +00:00
|
|
|
|
|
|
|
|
|
(spacemacs//init-leader-mode-map 'org-journal-mode 'spacemacs-org-journal-mode-map))))
|
2017-10-09 10:30:17 +00:00
|
|
|
|
|
|
|
|
|
(defun org/init-ox-hugo ()
|
|
|
|
|
(use-package ox-hugo :after ox))
|
2018-08-24 17:42:49 +00:00
|
|
|
|
|
2019-06-12 14:21:40 +00:00
|
|
|
|
(defun org/init-ox-jira ()
|
|
|
|
|
(use-package ox-jira :after ox))
|
|
|
|
|
|
2018-08-24 17:42:49 +00:00
|
|
|
|
(defun org/init-org-trello ()
|
|
|
|
|
(use-package org-trello
|
|
|
|
|
:after org
|
|
|
|
|
:config
|
|
|
|
|
(progn
|
2018-09-04 22:18:25 +00:00
|
|
|
|
(spacemacs/declare-prefix-for-mode 'org-mode "mmt" "trello")
|
2018-09-04 22:23:29 +00:00
|
|
|
|
(spacemacs/declare-prefix-for-mode 'org-mode "mmtd" "sync down")
|
|
|
|
|
(spacemacs/declare-prefix-for-mode 'org-mode "mmtu" "sync up")
|
2018-08-24 17:42:49 +00:00
|
|
|
|
(spacemacs/set-leader-keys-for-major-mode 'org-mode
|
2018-09-04 22:18:25 +00:00
|
|
|
|
"mtI" 'org-trello-install-key-and-token
|
|
|
|
|
"mta" 'org-trello-archive-card
|
|
|
|
|
"mtc" 'org-trello-create-board-and-install-metadata
|
|
|
|
|
"mti" 'org-trello-install-board-metadata
|
|
|
|
|
"mtm" 'org-trello-update-board-metadata
|
2018-09-04 22:23:29 +00:00
|
|
|
|
"mtdb" 'spacemacs/org-trello-pull-buffer
|
|
|
|
|
"mtdc" 'spacemacs/org-trello-pull-card
|
|
|
|
|
"mtub" 'spacemacs/org-trello-push-buffer
|
|
|
|
|
"mtuc" 'spacemacs/org-trello-push-card))))
|
2019-02-09 23:02:36 +00:00
|
|
|
|
|
2020-10-06 11:08:23 +00:00
|
|
|
|
(defun org/init-org-roam ()
|
|
|
|
|
(use-package org-roam
|
2020-12-25 01:01:25 +00:00
|
|
|
|
:defer t
|
2021-02-23 22:12:52 +00:00
|
|
|
|
:hook (after-init . org-roam-mode)
|
2020-10-06 11:08:23 +00:00
|
|
|
|
:init
|
|
|
|
|
(progn
|
|
|
|
|
(spacemacs/declare-prefix "aor" "org-roam")
|
|
|
|
|
(spacemacs/declare-prefix "aord" "org-roam-dailies")
|
2020-11-12 21:50:31 +00:00
|
|
|
|
(spacemacs/declare-prefix "aort" "org-roam-tags")
|
2020-10-06 11:08:23 +00:00
|
|
|
|
(spacemacs/set-leader-keys
|
2020-12-25 01:01:25 +00:00
|
|
|
|
"aordy" 'org-roam-dailies-find-yesterday
|
|
|
|
|
"aordt" 'org-roam-dailies-find-today
|
|
|
|
|
"aordT" 'org-roam-dailies-find-tomorrow
|
2021-01-27 09:08:29 +00:00
|
|
|
|
"aordd" 'org-roam-dailies-find-date
|
2020-10-06 11:08:23 +00:00
|
|
|
|
"aorf" 'org-roam-find-file
|
|
|
|
|
"aorg" 'org-roam-graph
|
|
|
|
|
"aori" 'org-roam-insert
|
|
|
|
|
"aorI" 'org-roam-insert-immediate
|
2020-12-25 01:01:25 +00:00
|
|
|
|
"aorl" 'org-roam-buffer-toggle-display
|
2020-11-12 21:50:31 +00:00
|
|
|
|
"aorta" 'org-roam-tag-add
|
2021-03-13 22:45:55 +00:00
|
|
|
|
"aortd" 'org-roam-tag-delete
|
|
|
|
|
"aora" 'org-roam-alias-add)
|
2020-10-06 11:08:23 +00:00
|
|
|
|
|
|
|
|
|
(spacemacs/declare-prefix-for-mode 'org-mode "mr" "org-roam")
|
|
|
|
|
(spacemacs/declare-prefix-for-mode 'org-mode "mrd" "org-roam-dailies")
|
2020-11-12 21:50:31 +00:00
|
|
|
|
(spacemacs/declare-prefix-for-mode 'org-mode "mrt" "org-roam-tags")
|
2020-10-06 11:08:23 +00:00
|
|
|
|
(spacemacs/set-leader-keys-for-major-mode 'org-mode
|
|
|
|
|
"rb" 'org-roam-switch-to-buffer
|
2020-12-25 01:01:25 +00:00
|
|
|
|
"rdy" 'org-roam-dailies-find-yesterday
|
|
|
|
|
"rdt" 'org-roam-dailies-find-today
|
|
|
|
|
"rdT" 'org-roam-dailies-find-tomorrow
|
2021-01-27 09:08:29 +00:00
|
|
|
|
"rdd" 'org-roam-dailies-find-date
|
2020-10-06 11:08:23 +00:00
|
|
|
|
"rf" 'org-roam-find-file
|
|
|
|
|
"rg" 'org-roam-graph
|
|
|
|
|
"ri" 'org-roam-insert
|
|
|
|
|
"rI" 'org-roam-insert-immediate
|
2020-12-25 01:01:25 +00:00
|
|
|
|
"rl" 'org-roam-buffer-toggle-display
|
2020-11-12 21:50:31 +00:00
|
|
|
|
"rta" 'org-roam-tag-add
|
2021-03-13 22:45:55 +00:00
|
|
|
|
"rtd" 'org-roam-tag-delete
|
|
|
|
|
"ra" 'org-roam-alias-add))
|
2020-10-06 11:08:23 +00:00
|
|
|
|
:config
|
|
|
|
|
(progn
|
|
|
|
|
(spacemacs|hide-lighter org-roam-mode))))
|
|
|
|
|
|
2019-02-09 23:02:36 +00:00
|
|
|
|
(defun org/init-org-sticky-header ()
|
|
|
|
|
(use-package org-sticky-header
|
|
|
|
|
:defer t
|
|
|
|
|
:init
|
|
|
|
|
(add-hook 'org-mode-hook 'org-sticky-header-mode)))
|
2020-03-22 22:10:31 +00:00
|
|
|
|
|
|
|
|
|
(defun org/init-verb ()
|
|
|
|
|
(use-package verb
|
2020-03-24 21:35:38 +00:00
|
|
|
|
:defer t
|
|
|
|
|
:init
|
2020-09-18 18:08:14 +00:00
|
|
|
|
(spacemacs/set-leader-keys-for-major-mode
|
|
|
|
|
'org-mode
|
|
|
|
|
"rf" #'verb-send-request-on-point
|
|
|
|
|
"rs" #'verb-send-request-on-point-other-window
|
|
|
|
|
"rr" #'verb-send-request-on-point-other-window-stay
|
|
|
|
|
"rm" #'verb-send-request-on-point-no-window
|
|
|
|
|
"rk" #'verb-kill-all-response-buffers
|
|
|
|
|
"re" #'verb-export-request-on-point
|
|
|
|
|
"ru" #'verb-export-request-on-point-curl
|
|
|
|
|
"rb" #'verb-export-request-on-point-verb
|
|
|
|
|
"rv" #'verb-set-var)
|
2020-05-07 16:53:09 +00:00
|
|
|
|
:config
|
|
|
|
|
(progn
|
2020-03-24 21:35:38 +00:00
|
|
|
|
(spacemacs/set-leader-keys-for-minor-mode
|
|
|
|
|
'verb-response-body-mode
|
|
|
|
|
"rr" #'verb-toggle-show-headers
|
|
|
|
|
"rk" #'verb-kill-response-buffer-and-window
|
|
|
|
|
"rf" #'verb-re-send-request)
|
2020-05-07 16:53:09 +00:00
|
|
|
|
(spacemacs/set-leader-keys-for-major-mode
|
2020-03-24 21:35:38 +00:00
|
|
|
|
'verb-response-headers-mode
|
|
|
|
|
"rq" #'verb-kill-buffer-and-window))))
|
2020-03-22 22:10:31 +00:00
|
|
|
|
|
|
|
|
|
(defun org/pre-init-verb ()
|
|
|
|
|
(spacemacs|use-package-add-hook org
|
|
|
|
|
:post-config (add-to-list 'org-babel-load-languages '(verb . t))))
|
2021-01-12 12:04:58 +00:00
|
|
|
|
|
|
|
|
|
(defun org/init-valign ()
|
|
|
|
|
(use-package valign
|
|
|
|
|
:init
|
|
|
|
|
(progn
|
|
|
|
|
(add-hook 'org-mode-hook 'valign-mode)
|
|
|
|
|
(add-hook 'valign-mode-hook (lambda () (unless valign-mode
|
2021-02-04 06:00:20 +00:00
|
|
|
|
(valign-remove-advice)))))
|
|
|
|
|
:config
|
|
|
|
|
(spacemacs|diminish valign-mode " ㊣" " E")))
|
2021-03-14 08:47:11 +00:00
|
|
|
|
|
|
|
|
|
(defun org/init-org-appear()
|
|
|
|
|
(use-package org-appear
|
|
|
|
|
:defer t
|
|
|
|
|
:init
|
|
|
|
|
(progn
|
|
|
|
|
(add-hook 'org-mode-hook 'org-appear-mode)
|
|
|
|
|
(setq org-appear-autolinks t
|
|
|
|
|
org-appear-autoemphasis t
|
|
|
|
|
org-appear-autosubmarkers t))))
|