Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Directly stolen from mafty (on emacs-china) Originally from tecosaur
- Loading branch information
Showing
1 changed file
with
12 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0956919
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Error running timer ‘org-xlatex--timer-function’: (void-function pixel-line-height) [4 times]
spacemacs 中出现这个错误是啥原因,没有增加光标版本之前是可用的,加了之后就出现这个错误了。
0956919
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@weitongdao 可否试一下 (require 'pixel-scroll) 然后回报结果?谢谢。
0956919
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
可以了,解决。
VagrantJoker 的方案:https://emacs-china.org/t/xwidget-webkit-wysiwyg-latex/24859/6
'加上这两句就可以正常工作了,也有红标指示了了
(require 'pixel-scroll)
(setq org-xlatex-position-indicator t)
0956919
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
提一个简单的需求:
增加一个开头模式,比如不需要即显了,它能关闭掉预览窗口。 org-xlatex-mode 好像只能打开。
0956919
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@weitongdao 抱歉,没太理解你具体想要什么样的行为……
如果你说的是「一段时间内禁止 org-xlatex 显示任何预览窗口」,可以临时关闭掉 org-xlatex-mode,在需要的时候再打开。
如果还需要快速切换minor mode,可以考虑把切换命令绑定到一个快捷键上。
0956919
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
一段时间内禁止 org-xlatex 显示任何预览窗口」,可以临时关闭掉 org-xlatex-mode,这个怎么实现,因为emacs 命令行只有 org-xlatex-mode这一个命令。
所以要自己写一个取消minor mode的命令或者 toggle的命令吗。
0956919
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@weitongdao M-x org-xlatex-mode 切换
0956919
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
运行再次M-x org-xlatex-mode,会得到两个这个预览窗口。这个窗口如果能手动关闭的话就好了,相当于一个重置功能。
0956919
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@weitongdao 这应该是之前的一个bug,在没有干净关闭的情况下timer没有被重置,目前已经修复了。你可以重启一下emacs或者M-x list-timers删除多余的timer。
0956919
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
谢谢,现在好了,我使用一段时间再看看哈