怎样在 Emacs 中编辑任意文字区域
- 在 Firefox 中,安装
Edit with Emacs拓展 - 在 Emacs 中,用 package-list-packages 安装
use-package拓展 - 在 Emacs 配置文件中写下:
;;; init-edit-textarea-with-emacs.el -*- lexical-binding: t -*-
;;; 在任意输入框,用 Emacs 编辑
;;; 与 emacsclient 的 server-start 没有关系,只是名字相似
;;; https://github.com/stsquad/emacs_chrome
(use-package edit-server
:ensure t
:commands edit-server-start
:init (if after-init-time
(edit-server-start)
(add-hook 'after-init-hook
#'(lambda() (edit-server-start))))
:config (setq edit-server-new-frame-alist
'((name . "Edit with Emacs FRAME")
(top . 200)
(left . 200)
(width . 80)
(height . 25)
(minibuffer . t)
(menu-bar-lines . t))))
(provide 'init-edit-textarea-with-emacs)
即可。