实现效果图如上:
详细使用方法参考官网
https://github.com/the-ted/org-mind-map
@1 window下找到.emacs.d目录。度之。
@2 按如下思路徐徐图之,不用cygwin。
melap => use-package => org-mind-map
@3 下载安装 graphviz 安装自动添加环境变量。https://gitlab.com/api/v4/projects/4207231/packages/generic/graphviz-releases/5.0.1/windows_10_cmake_Release_graphviz-install-5.0.1-win64.exe
- melap 参考清华镜像 https://mirrors.tuna.tsinghua.edu.cn/help/elpa/
(setq package-archives '((“gnu” . “http://mirrors.tuna.tsinghua.edu.cn/elpa/gnu/”)
(“melpa” . “http://mirrors.tuna.tsinghua.edu.cn/elpa/melpa/”)))
(package-initialize) ;; You might already have this line
添加进.emacs文件,M-x package-refresh-contents
刷新连接melpa源。
后,安装use-package M-x package-install Ret use-package Ret
再用use-package的方式安装org-mind-map把如下org-mind-map官网上的信息copy到.emacs文件中。
;; This is an Emacs package that creates graphviz directed graphs from
;; the headings of an org file
(use-package org-mind-map
:init
(require 'ox-org)
:ensure t
;; Uncomment the below if 'ensure-system-packages` is installed
;;:ensure-system-package (gvgen . graphviz)
:config
(setq org-mind-map-engine “dot”) ; Default. Directed Graph
;; (setq org-mind-map-engine “neato”) ; Undirected Spring Graph
;; (setq org-mind-map-engine “twopi”) ; Radial Layout
;; (setq org-mind-map-engine “fdp”) ; Undirected Spring Force-Directed
;; (setq org-mind-map-engine “sfdp”) ; Multiscale version of fdp for the layout of large graphs
;; (setq org-mind-map-engine “twopi”) ; Radial layouts
;; (setq org-mind-map-engine “circo”) ; Circular Layout
)
文件类型可以是图片png或pdf,其他格式没尝试。