Skip to content

Instantly share code, notes, and snippets.

@ngm
Last active November 13, 2019 21:44
Show Gist options
  • Star 9 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save ngm/646f5a1e958920c1c0f31cc3b51a8762 to your computer and use it in GitHub Desktop.
Save ngm/646f5a1e958920c1c0f31cc3b51a8762 to your computer and use it in GitHub Desktop.
Basic spacemacs org-brain layer
;; put this file in ~/.emacs.d/private/org-brain
;; then add org-brain into your dotspacemacs-configuration-layers in .spacemacs
(defconst org-brain-packages
'(org-brain)
)
;; see https://github.com/Kungsgeten/org-brain#setup-and-requirements
(defun org-brain/init-org-brain ()
(use-package org-brain
:ensure t
:init
(with-eval-after-load 'evil
(evil-set-initial-state 'org-brain-visualize-mode 'emacs))
)
)
@manofearth
Copy link

manofearth commented Nov 13, 2019

It may be better to evilify "org-brain visualize buffer" a bit :)

(defun org-brain/init-org-brain ()
  (use-package org-brain
    :ensure t
    :config
    (evilified-state-evilify-map org-brain-visualize-mode-map
      :mode org-brain-visualize-mode
      :bindings
      "o" 'link-hint-open-link)))

so you'll get usual evil motion keys + most of org-brain-visualize-mode-map keys + possibility for customization (with :bindings)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment