emacs代理调试beancount

emacs代理调试beancount

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
python --version
<<'CONTENT'
Python 3.10.10
CONTENT

pip --version
<<'CONTENT'
pip 25.3 from D:\ProgramFiles\miniconda3\Lib\site-packages\pip (python 3.13)
CONTENT

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple beancount fava

which bean-example
<<'CONTENT'
/cygdrive/d/ProgramFiles/miniconda3/Scripts/bean-example
CONTENT

temp="$HOME/temp"
mkdir -p $temp; cd $temp

cat - >> .emacs << 'EOF'
(add-to-list 'load-path "/path/to/beancount/src/elisp")
(require 'beancount)
(add-to-list 'auto-mode-alist '("\\.beancount\\'" . beancount-mode))

(load-theme 'misterioso t)
(if (>= emacs-major-version 29)
        (global-display-line-numbers-mode)
  (global-linum-mode t))
EOF

http_proxy="127.0.0.1:10808" HOME=$temp emacs


M-x,package-refresh-contents

M-x,package-install,beancount

# 重启emacs
C-x,C-c
emacs
# 或
http_proxy="127.0.0.1:10808" emacs

# 生成示例文件
bean-example > example.beancount
# web访问示例文件
fava example.beancount
comments powered by Disqus
使用 Hugo 构建
主题 StackJimmy 设计