holo-layer: 一种全新的Emacs增强图层插件

@manateelazycat 提了一个pull request来修复mac下窗口偏移的问题

1 个赞

好的, 感谢补丁, 今天早上已经合并了。 :wink:

emacs -Q 试了一下, 在Manjaro 上非全屏可以正常使用, 但是全屏的话, Emacs 会显示在翻译内容和光标动画的上面, 当把Emacs 移到副屏幕时, 全屏后可以看到主屏幕有绘制的内容

还没有做多屏处理, 欢迎发补丁。

This process is not trusted! Input event monitoring will not be possible until it is added to accessibility clients.

*holo-layer* 中有这个提示,我把 Emacs 加入 Input Monitoring 中:

还是有这个提示。

请教下,这个是什么原因导致的?谢谢 ~

苹果的安全权限要打开,wiki写的有,我记得是要在辅助里面打开安全选项。

谢谢,大佬 ~

安全权限也给了 Emacs,还是有这个提示。新引入的进程 python3.10,会不会是这个?

应该是这个:

大佬,请问mac是怎么安装 whiteSur icon theme 的

其实现在预置图标足够多了,没啥图标可以网上下载放到icon cache目录下,我今天把图标依赖代码去掉

3 个赞

已经移除了对Linux图标主题的依赖, 少什么图标可以从 https://icons8.com/icons/set 下载。

2 个赞

pip install pynput

需要把README说的所有Python包都装一下。

我使用的是 manjaro 系统,在用 pip 安装完 README 要求的包并配置后,在 emacs -q 的情况下执行

(add-to-list 'load-path "~/.emacs.d/site-lisp/holo-layer")
(require 'holo-layer)
(holo-layer-enable)
(setq holo-layer-enable-debug t)
(setq holo-layer-enable-cursor-animation t)

发现并没有效果(没有果冻光标),此时 holo-layer 中的信息没有 error(用 isearch 搜了一下),最后结尾时这个:

python 版本是 3.11.5

emacs 版本是 29.1

目前有这几个命令

restart 后没有效果 请问应该怎样进一步调试?

你是啥环境wayland,还是xorg ?

我其实不太了解,不过我搜了一下,我在终端执行

echo $XDG_SESSION_TYPE

输出是 x11,所以应该是 xorg?

试试这个?可能跟顺序有关。Mac 中用的是绝对路径

(add-to-list 'load-path "~/.emacs.d/site-lisp/holo-layer")
(require 'holo-layer)
(setq holo-layer-enable-debug t)
(setq holo-layer-enable-cursor-animation t)
(holo-layer-enable)
2 个赞

好了好了,确实因为这个,谢谢

大佬们,在linux上成功安装,但是在m1 mac上无法正常使用,input monitoring 和accessibility权限已给,*holo-layer* buffer中没有任何信息,请问该怎么debug? emacs28.2,python版本3.11.6

看readme底部

emacs -q下也是相同问题,有python qt进程在运行,但是*holo-layer*下无内容,自己测试pyqt6是可以用的,*holo-layer*也可以获取到对emacs的输入

并且gdb 并不支持M1 Macs, 所以我用不了debug-mode

gdb: The x86_64 architecture is required for this software.
Error: gdb: An unsatisfied requirement failed this build.