lang/org: add +brain feature
No keybinding yet.
This commit is contained in:
parent
995031f66f
commit
9647cb0a49
4 changed files with 24 additions and 1 deletions
|
@ -197,7 +197,7 @@ Modules that bring support for a language or group of languages to Emacs.
|
||||||
+ [[file:../modules/lang/nim/README.org][nim]] - TODO
|
+ [[file:../modules/lang/nim/README.org][nim]] - TODO
|
||||||
+ nix - TODO
|
+ nix - TODO
|
||||||
+ [[file:../modules/lang/ocaml/README.org][ocaml]] =+lsp= - TODO
|
+ [[file:../modules/lang/ocaml/README.org][ocaml]] =+lsp= - TODO
|
||||||
+ [[file:../modules/lang/org/README.org][org]] =+dragndrop +gnuplot +hugo +ipython +journal +jupyter +pandoc +pomodoro +present= - TODO
|
+ [[file:../modules/lang/org/README.org][org]] =+brain +dragndrop +gnuplot +hugo +ipython +journal +jupyter +pandoc +pomodoro +present= - TODO
|
||||||
+ [[file:../modules/lang/perl/README.org][perl]] - TODO
|
+ [[file:../modules/lang/perl/README.org][perl]] - TODO
|
||||||
+ [[file:../modules/lang/php/README.org][php]] =+lsp= - TODO
|
+ [[file:../modules/lang/php/README.org][php]] =+lsp= - TODO
|
||||||
+ plantuml - TODO
|
+ plantuml - TODO
|
||||||
|
|
|
@ -52,6 +52,7 @@ https://www.mfoot.com/blog/2015/11/22/literate-emacs-configuration-with-org-mode
|
||||||
#+end_quote
|
#+end_quote
|
||||||
|
|
||||||
** Module Flags
|
** Module Flags
|
||||||
|
+ =+brain= Enables [[https://github.com/Kungsgeten/org-brain][org-brain]] integration.
|
||||||
+ =+dragndrop= Enables drag-and-drop support for images and files; inserts
|
+ =+dragndrop= Enables drag-and-drop support for images and files; inserts
|
||||||
inline previews for images and an icon+link for other media types.
|
inline previews for images and an icon+link for other media types.
|
||||||
+ =+gnuplot= Installs gnuplot & gnuplot-mode, which enables rendering images
|
+ =+gnuplot= Installs gnuplot & gnuplot-mode, which enables rendering images
|
||||||
|
|
|
@ -995,6 +995,7 @@ compelling reason, so..."
|
||||||
#'+org-init-smartparens-h)
|
#'+org-init-smartparens-h)
|
||||||
|
|
||||||
;;; Custom org modules
|
;;; Custom org modules
|
||||||
|
(if (featurep! +brain) (load! "contrib/brain"))
|
||||||
(if (featurep! +dragndrop) (load! "contrib/dragndrop"))
|
(if (featurep! +dragndrop) (load! "contrib/dragndrop"))
|
||||||
(if (featurep! +ipython) (load! "contrib/ipython"))
|
(if (featurep! +ipython) (load! "contrib/ipython"))
|
||||||
(if (featurep! +journal) (load! "contrib/journal"))
|
(if (featurep! +journal) (load! "contrib/journal"))
|
||||||
|
|
21
modules/lang/org/contrib/brain.el
Normal file
21
modules/lang/org/contrib/brain.el
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
;;; lang/org/contrib/brain.el -*- lexical-binding: t; -*-
|
||||||
|
;;;###if (featurep! +brain)
|
||||||
|
|
||||||
|
(use-package! org-brain
|
||||||
|
:defer t
|
||||||
|
:init
|
||||||
|
(setq org-id-track-globally t
|
||||||
|
org-id-locations-file (concat doom-etc-dir "org-id-locations")
|
||||||
|
org-brain-visualize-default-choices 'all
|
||||||
|
org-brain-title-max-length 24
|
||||||
|
org-brain-include-file-entries nil
|
||||||
|
org-brain-file-entries-use-title nil)
|
||||||
|
|
||||||
|
:config
|
||||||
|
(set-evil-initial-state! 'org-brain-visualize-mode 'emacs)
|
||||||
|
(set-popup-rule! "^\\*org-brain" :side 'right :size 1.00 :select t :ttl nil)
|
||||||
|
|
||||||
|
(cl-pushnew '("b" "Brain" plain (function org-brain-goto-end)
|
||||||
|
"* %i%?" :empty-lines 1)
|
||||||
|
org-capture-templates
|
||||||
|
:key #'car :test #'equal))
|
Loading…
Add table
Add a link
Reference in a new issue