在macos中播放视频黑屏,只有声音。无法输入中文,输入法是 Squirrel
manjaro 切换到 opensuse,安装失败。
❯ ./install-eaf.sh
Unsupported distribution/package manager. Here are the packages that needs to be installed:
- git
- nodejs
- npm
- python-pyqt5
- python-pyqt5-sip
- python-pyqtwebengine
- wmctrl
- python-qrcode
- aria2
- python-qtconsole
Please test their installation and submit an issue/PR to https://github.com/manateelazycat/emacs-application-framework for the script to be updated.
这些包都装好了,还是报这个信息。
视频看不了是解码的问题,Readme中已经写了。我这里Squirrel是可以用的,虽然候选框的位置不正确。输入中文可以用eaf-proxy-atomic_edit,可以在Emacs的buffer中进行。
如果确认自己下载好就行,接下来把npm install跑了,几个python库下了就行,具体可以参考script内容
装已装完了,运行 eaf-open-demo
提示:
Cannot open load file: No such file or directory, epc
这是什么情况?请教。
Debugger entered--Lisp error: (file-missing "Cannot open load file" "No such file or directory" "epc")
require(epc)
#<subr eval-buffer>(#<buffer *load*> nil "/home/mls/.emacs.d/.local/straight/build-27.2/eaf/..." nil t)
apply(#<subr eval-buffer> (#<buffer *load*> nil "/home/mls/.emacs.d/.local/straight/build-27.2/eaf/..." nil t))
eval-buffer(#<buffer *load*> nil "/home/mls/.emacs.d/.local/straight/build-27.2/eaf/..." nil t) ; Reading at buffer position 2884
load-with-code-conversion("/home/mls/.emacs.d/.local/straight/build-27.2/eaf/..." "/home/mls/.emacs.d/.local/straight/build-27.2/eaf/..." nil t)
#<subr autoload-do-load>((autoload "eaf" ("/home/mls/.emacs.d/.local/autoloads.27.2.elc" . 1286708) t nil) eaf-open-demo nil)
apply(#<subr autoload-do-load> ((autoload "eaf" ("/home/mls/.emacs.d/.local/autoloads.27.2.elc" . 1286708) t nil) eaf-open-demo))
autoload-do-load((autoload "eaf" ("/home/mls/.emacs.d/.local/autoloads.27.2.elc" . 1286708) t nil) eaf-open-demo)
command-execute(eaf-open-demo record)
counsel-M-x-action("eaf-open-demo")
ivy-call()
ivy-read("M-x " ("toggle-debug-on-error" "eaf-install-dependencies" "eaf-open-demo" "org-download-yank" "org-download-clipboard" "org-mode" "shrface-mode" "pdf-tools-install" "epa-encrypt-file" "org-edit-special" "org-roam-find-file" "org-krita-insert-new-image" "magit" "nov-mode" "magit-diff" "menu-bar-mode" "org-footnote-new" "plantuml-download-jar" "org-download-screenshot" "R" "cd" "wl" "5x5" "SAS" "amx" "arp" "dbx" "dig" "erc" "ert" "eww" "ftp" "gdb" "irc" "jdb" "lsp" "man" "mpc" "pdb" "pwd" "rsh" "sdb" "sly" "wos" "xdb" "=irc" "=rss" "calc" "deft" "diff" ...) :predicate counsel--M-x-externs-predicate :require-match t :history counsel-M-x-history :action counsel-M-x-action :keymap (keymap (67108908 . counsel--info-lookup-symbol) (67108910 . counsel-find-symbol)) :initial-input nil :caller counsel-M-x)
counsel-M-x()
funcall-interactively(counsel-M-x)
call-interactively(counsel-M-x nil nil)
command-execute(counsel-M-x)
emacs-epc没装?
感觉eaf-mindmap不错呀,就是不知道如何导出格式,比如jpg,pdf等,还有保存的是.emm的格式,不知道能不能保存成mindmaster或freedmind的格式呢?windows应该装不了mindmapple吧?
但是看到mindmap包里有相关的函数,不知该如何调用呢? @interactive(insert_or_do=True)
def save_org_file(self):
file_path = self.get_save_path("org")
touch(file_path)
eval_in_emacs('eaf--export-org-json', [self.buffer_widget.execute_js("save_file();"), file_path])
message_to_emacs("Save org file: " + file_path)
@interactive(insert_or_do=True)
def save_freemind_file(self, notify=True):
file_path = self.get_save_path("mm")
with open(file_path, "w") as f:
f.write(self.buffer_widget.execute_js("save_freemind_file();"))
if notify:
message_to_emacs("Save freemind file: " + file_path)
看README
wiki有快捷键
OK,非常感谢!
能否把eaf-open-office改成用pandoc转呢?mac端的libreoffice并不能转Office文件
可以写成自定义命令
mac端, eaf-open-browser
有错误:
/bin/sh: ldd: command not found
EAF process starting...
Traceback (most recent call last):
File "/Users/sfq/.my.emacs.d/doom-emacs/.emacs.d/.local/straight/repos/emacs-application-framework/core/utils.py", line 58, in on_signal_received
self._func(obj, *args, **kwargs)
File "/Users/sfq/.my.emacs.d/doom-emacs/.emacs.d/.local/straight/build-27.2/eaf/eaf.py", line 133, in new_buffer
self.create_app(buffer_id, str(url), "app.{0}.buffer".format(str(app_name)), str(arguments))
File "/Users/sfq/.my.emacs.d/doom-emacs/.emacs.d/.local/straight/build-27.2/eaf/eaf.py", line 180, in create_app
self.create_buffer(buffer_id, url, module_path, arguments)
File "/Users/sfq/.my.emacs.d/doom-emacs/.emacs.d/.local/straight/build-27.2/eaf/eaf.py", line 194, in create_buffer
app_buffer = module.AppBuffer(buffer_id, url, eaf_config_dir, arguments, self.emacs_var_dict, module_path)
File "/Users/sfq/.my.emacs.d/doom-emacs/.emacs.d/.local/straight/repos/emacs-application-framework/app/browser/buffer.py", line 35, in __init__
BrowserBuffer.__init__(self, buffer_id, url, config_dir, arguments, emacs_var_dict, module_path, False)
File "/Users/sfq/.my.emacs.d/doom-emacs/.emacs.d/.local/straight/repos/emacs-application-framework/core/browser.py", line 612, in __init__
self.add_widget(BrowserView(buffer_id, config_dir))
File "/Users/sfq/.my.emacs.d/doom-emacs/.emacs.d/.local/straight/repos/emacs-application-framework/core/browser.py", line 71, in __init__
self.dark_mode_js = open(os.path.join(os.path.dirname(os.path.dirname(__file__)),
FileNotFoundError: [Errno 2] No such file or directory: '/Users/sfq/.my.emacs.d/doom-emacs/.emacs.d/.local/straight/repos/emacs-application-framework/node_modules/darkreader/darkreader.js'
Process *eaf* abort trap: 6
好像mac上没有 ldd
命令。
跟ldd没关系的,问题出在最后一行,darkreader没安装上,确保npm的包安装齐全就没问题了。
是的,是npm包没有安完。
GitHub - xahlee/xah-fly-keys: the most efficient keybinding for emacs
在快捷键上与 xahlee 的怎么组织, 可否, 给个思路即可
请教下,怎么设置默认用eaf打开网页啊?每次都要手动eaf-open-browser…
;; 用 eaf 打开链接
(defun adviser-browser-url (orig-fn url &rest args)
(cond ((string-prefix-p "file:" url) (eww url))
((and (commandp 'eaf-open-browser)
(display-graphic-p))
(eaf-open-browser url))
(t (apply orig-fn url args))))
(advice-add #'browse-url :around #'adviser-browser-url))
用eaf看视频时很流畅,但是没有字幕。而用VLC是有字幕可以载入的。请问如何解决。