tumashu/cnfonts 583
emacs中文字体配置工具。可以快速方便的的实现中文字体和英文字体等宽(也就是常说的中英文对齐)。
Offer a *visual* way to choose a window to switch to
A derivative WM based on EXWM (emacs x window manager)
Convert an emacs-lisp file to org file
A emacs dynamic module provide librime bindings for emacs
Emacs-lisp 奇淫异技
(tumashu's emacs configure)
一个简单的sdcv字典程序的emacs前端。
startedtumashu/posframe
started time in a day
startedtumashu/helm-posframe
started time in 2 days
startedtumashu/ivy-posframe
started time in 3 days
issue commenttumashu/posframe
Improve posframe performance again.
更新下,最新版gccemacs使用ivy-posframe,性能提升明显,内存也有所改善。推荐大家试试。
comment created time in 3 days
startedtumashu/cnfonts
started time in 3 days
startedtumashu/ivy-posframe
started time in 3 days
issue closedtumashu/pyim
每次按空白鍵都會報以下的錯誤
Debugger entered--Lisp error: (void-function pyim-hanzi2xingma:cangjie)
pyim-hanzi2xingma:cangjie("你")
pyim-hanzi2xingma("你" cangjie t)
pyim-create-pyim-word("你" t)
pyim-page-select-word:xingma()
pyim-page-select-word()
funcall-interactively(pyim-page-select-word)
call-interactively(pyim-page-select-word)
pyim-start-translation(111)
pyim-input-method(111)
點進pyim-hanzi2xingma 看看發現的確是沒有 pyim-hanzi2xingma:cangjie 這個function
但奇怪的是在github這裡發現連pyim-hanzi2xingma都早已被刪除
我去查看版本,應該都是最新的
(這裡安裝了兩次,我猜會不會是DOOM安裝的,不過應該版本也不算舊)
以下是我的config檔
.doom.d/config.el
(use-package! pyim-cangjiedict
:config
(setq default-input-method "pyim")
(setq pyim-page-tooltip 'popup)
(setq pyim-default-scheme 'cangjie)
(pyim-cangjie5dict-enable) ;; 啓用五代詞庫(Enable cangjie5)
)
謝謝!
closed time in 5 days
shthissue commenttumashu/pyim
你說得對,執行
doom sync -u; doom build; doom clean
之後就可以了
話說我是從這裡得知的 https://discourse.doomemacs.org/docs?category=69&topic=53#debug-the-issue-yourself
comment created time in 5 days
startedtumashu/pyim
started time in 6 days
issue commenttumashu/posframe
Improve posframe performance again.
有一定提升,还在观察中。。。
comment created time in 6 days
startedtumashu/pyim
started time in 6 days
issue commenttumashu/posframe
Improve posframe performance again.
刚才编译了新版本,同样的分辨率下测试 (benchmark-run 1000 (redraw-frame)),时间在 ~2s左右,提升不少啊!
comment created time in 7 days
issue commenttumashu/posframe
Improve posframe performance again.
嗯,我这两天再抽空编译下新版本,看看有没有改善。
comment created time in 7 days
startedtumashu/company-posframe
started time in 7 days
startedtumashu/ivy-posframe
started time in 8 days
startedtumashu/pyim-basedict
started time in 8 days
issue commenttumashu/pyim
async-handle-result: Symbol’s function definition is void: cl-remove-if-not
我也遇到同样的问题了,以为是自己升级了27.2和Spacemacs版本的原因,现在升级Pyim后一切正常了,感谢呆神的作品。
comment created time in 8 days
issue openedtumashu/pyim
每次按空白鍵都會報以下的錯誤
Debugger entered--Lisp error: (void-function pyim-hanzi2xingma:cangjie)
pyim-hanzi2xingma:cangjie("你")
pyim-hanzi2xingma("你" cangjie t)
pyim-create-pyim-word("你" t)
pyim-page-select-word:xingma()
pyim-page-select-word()
funcall-interactively(pyim-page-select-word)
call-interactively(pyim-page-select-word)
pyim-start-translation(111)
pyim-input-method(111)
點進pyim-hanzi2xingma 看看發現的確是沒有 pyim-hanzi2xingma:cangjie 這個function
但奇怪的是在github這裡發現連pyim-hanzi2xingma都早已被刪除
我去查看版本,應該都是最新的
(這裡安裝了兩次,我猜會不會是DOOM安裝的,不過應該版本也不算舊)
以下是我的config檔
.doom.d/config.el
(use-package! pyim-cangjiedict
:config
(setq default-input-method "pyim")
(setq pyim-page-tooltip 'popup)
(setq pyim-default-scheme 'cangjie)
(pyim-cangjie5dict-enable) ;; 啓用五代詞庫(Enable cangjie5)
)
謝謝!
created time in 9 days
startedtumashu/posframe
started time in 9 days
issue commenttumashu/posframe
Improve posframe performance again.
@tumashu 我用的就是最新版,6/2编译的
comment created time in 9 days
issue commenttumashu/posframe
Improve posframe performance again.
@tumashu 性能有一定提升,但是闪烁也挺难受啊 😂
comment created time in 10 days
startedtumashu/cnfonts
started time in 10 days
issue commenttumashu/posframe
Improve posframe performance again.
现在用的就是最新代码,感觉不明显。
顺便提一句,隐藏minibuffer prompt那个实在tricky啊,mini-frame是怎么干的呢,好像所有都放到child frame了
comment created time in 11 days
issue commenttumashu/posframe
Improve posframe performance again.
redraw-display 性能相差太大了。
@tumashu 你是指去掉 (redraw-frame posframe),用新的 ivy-posframe--display 对吗?结果是会残留之前的内容,闪一下显示新内容。
comment created time in 11 days
issue commenttumashu/posframe
Improve posframe performance again.
我写了一个简单的 benchmark 工具,暂时还比较粗糙,大家可以运行一下,看看效果如何
https://github.com/tumashu/posframe/blob/master/posframe-benchmark.el
默认最新版:
* Posframe Benchmark
** Benchmark ‘font-at’ 10000 times ...
Elapsed time: 0.237086s
** Benchmark ‘redraw-display’ 10000 times ...
Elapsed time: 59.314862s
** Benchmark ‘remove-text-properties’ 10000 times ...
Elapsed time: 0.003365s
** Benchmark ‘mouse-position’ 10000 times ...
Elapsed time: 1.041860s
** Benchmark ‘default-font-width’ 10000 times ...
Elapsed time: 0.216869s
** Benchmark ‘posframe--get-font-height’ 10000 times ...
Elapsed time: 0.005082s
** Benchmark ‘posframe--mouse-banish’ 10000 times ...
Elapsed time: 0.001690s
** Benchmark ‘frame-parameter’ 10000 times ...
Elapsed time: 0.045978s
** Benchmark ‘set-mouse-position’ 10000 times ...
Elapsed time: 0.240378s
** Benchmark ‘posn-at-point’ 10000 times ...
Elapsed time: 219.611200s (1.041883s in 6 GCs)
** Benchmark ‘set-frame-parameter’ 10000 times ...
Elapsed time: 0.006588s
** Benchmark ‘raise-frame’ 10000 times ...
Elapsed time: 1.084977s
* Finished.
去掉了redraw-frame 之后:
* Posframe Benchmark
** Benchmark ‘font-at’ 10000 times ...
Elapsed time: 0.203783s
** Benchmark ‘redraw-display’ 10000 times ...
Elapsed time: 60.493191s
** Benchmark ‘remove-text-properties’ 10000 times ...
Elapsed time: 0.002599s
** Benchmark ‘mouse-position’ 10000 times ...
Elapsed time: 1.046413s
** Benchmark ‘default-font-width’ 10000 times ...
Elapsed time: 0.223130s
** Benchmark ‘posframe--get-font-height’ 10000 times ...
Elapsed time: 0.005315s
** Benchmark ‘posframe--mouse-banish’ 10000 times ...
Elapsed time: 0.001859s
** Benchmark ‘frame-parameter’ 10000 times ...
Elapsed time: 0.176227s (0.134239s in 1 GCs)
** Benchmark ‘set-mouse-position’ 10000 times ...
Elapsed time: 0.224940s
** Benchmark ‘posn-at-point’ 10000 times ...
Elapsed time: 180.730515s (0.782196s in 5 GCs)
** Benchmark ‘set-frame-parameter’ 10000 times ...
Elapsed time: 0.004266s
** Benchmark ‘raise-frame’ 10000 times ...
Elapsed time: 0.670495s
* Finished.
comment created time in 11 days
issue commenttumashu/posframe
Improve posframe performance again.
去除 (redraw-frame posframe) 后,tumashu/ivy-posframe#30 这个问题不知道存不存在?
@tumashu 去掉这个问题会存在,内容没有被清理,窗口会有一定的闪烁。
我没有用 persp-mode,不过测试结果也是5秒左右。另外我发现
posframe-run-hidehandler被调用得很频繁(因为被加到了post-command-hook里),这对速度有影响吗?还有速度影响最明显的是用counsel搜索的时候,counsel--async-filter被非常频繁地调用 (好像每次调用都会update buffer内容),不知道有没有联系。
@zhenwenc 对,跟persp-mode没有关系,跟窗口大小有关。我去掉persp-mode性能提高就是因为窗口是默认大小并没有最大化。posframe-run-hidehandler 我认为有不是瓶颈, 你可以profile再看看到底CPU占用如何。
comment created time in 11 days
issue commenttumashu/posframe
Improve posframe performance again.
我没有用 persp-mode,不过测试结果也是5秒左右。另外我发现 posframe-run-hidehandler 被调用得很频繁(因为被加到了post-command-hook里),这对速度有影响吗?还有速度影响最明显的是用counsel搜索的时候,counsel--async-filter 被非常频繁地调用 (好像每次调用都会update buffer内容),不知道有没有联系。
comment created time in 11 days
issue commenttumashu/posframe
Improve posframe performance again.
在linux下, 1000次用时 0.0005
晚上又研究了一会,发现跟persp-mode没有必然联系,只跟frame大小有关。因为我用的是4K显示屏,全屏时就是6s左右,默认窗口大小(80x30)就是0.4s左右。
comment created time in 12 days
startedtumashu/ivy-posframe
started time in 12 days