pkg update and first config fix

org-brain not working, add org-roam
This commit is contained in:
2022-12-19 23:02:34 +01:00
parent 02b3e07185
commit 82f05baffe
885 changed files with 356098 additions and 36993 deletions

View File

@@ -1,6 +1,6 @@
;;; treemacs.el --- A tree style file viewer package -*- lexical-binding: t -*-
;; Copyright (C) 2021 Alexander Miller
;; Copyright (C) 2022 Alexander Miller
;; 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
@@ -225,7 +225,7 @@ node for quick retrieval later."
Based on the given NAME this macro will define a `treemacs-${name}-state' state
variable and a `treemacs-${name}-icon' icon variable. If the icon should not be
static, and should be instead computed every time this node is rendered in its
parent's :render-action use 'dynamic-icon as a value for ICON.
parent's :render-action use \\='dynamic-icon as a value for ICON.
The ICON is a string that should be created with `treemacs-as-icon'. If the
icon is for a file you can also use `treemacs-icon-for-file'.
@@ -270,11 +270,12 @@ type. VISIT-ACTION is used in `treemacs-visit-node-no-split' actions."
"Define a type of node with given NAME that can be further expanded.
ICON-OPEN and ICON-CLOSED are strings and must be created by `treemacs-as-icon'.
They will be defvar'd as 'treemacs-icon-${name}-open/closed'. As an alternative
to static icons you can also supply ICON-OPEN-FORM and ICON-CLOSED-FORM that
will be dynamically executed whenever a new icon is needed. Keep in mind that,
since child nodes are first rendered by their parents, an ICON-CLOSED-FORM will
need to be repeated in the parent's RENDER-ACTION.
They will be defvar'd as \\='treemacs-icon-${name}-open/closed'. As an
alternative to static icons you can also supply ICON-OPEN-FORM and
ICON-CLOSED-FORM that will be dynamically executed whenever a new icon is
needed. Keep in mind that, since child nodes are first rendered by their
parents, an ICON-CLOSED-FORM will need to be repeated in the parent's
RENDER-ACTION.
QUERY-FUNCTION is a form and will be invoked when the node is expanded. It must
provide the list of elements that will be rendered with RENDER-ACTION.
@@ -476,7 +477,6 @@ additional keys."
(dom-node (treemacs-dom-node->create!
:key ,root-key-form
:position button-start)))
(treemacs--set-project-position ,root-key-form (point-marker))
(treemacs-dom-node->insert-into-dom! dom-node)
(insert (propertize "Hidden Node\n"
'button '(t)
@@ -501,7 +501,6 @@ additional keys."
:path ,root-key-form
:path-status 'extension)]
(insert ,(if icon-closed closed-icon-name icon-closed-form))
(treemacs--set-project-position ,root-key-form (point-marker))
(insert (propertize ,root-label
'button '(t)
'category 'default-button
@@ -552,6 +551,8 @@ and rules apply for QUERY-FUNCTION, RENDER-ACTION and ROOT-KEY-FORM."
(treemacs-mode))
(setq-local treemacs--in-this-buffer :extension))
(treemacs-log "The treemacs-extensions module is obsolete, treemacs-treelib should be used instead.")
(provide 'treemacs-extensions)
;;; treemacs-extensions.el ends here