Difference between revisions of "怎样在 Emacs 中编辑文字区域"
Jump to navigation
Jump to search
(Created page with "# 在 Firefox 中,安装 `Edit with Emacs` 拓展") |
|||
(10 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | # 在 Firefox 中,安装 |
+ | # 在 Firefox 中,安装 <code> Edit with Emacs </code> 拓展 |
+ | # 在 Emacs 中,用 package-list-packages 安装 <code> edit-server </code> 拓展 |
||
+ | # 在 Emacs 中,用 package-list-packages 安装 <code> use-package </code> 拓展 |
||
+ | # 在 Emacs 配置文件中写下: |
||
+ | <syntaxhighlight lang="elisp" line> |
||
+ | (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)))) |
||
+ | </syntaxhighlight> |
||
+ | |||
+ | 即可。 |
Latest revision as of 17:04, 25 July 2024
- 在 Firefox 中,安装
Edit with Emacs
拓展 - 在 Emacs 中,用 package-list-packages 安装
edit-server
拓展 - 在 Emacs 中,用 package-list-packages 安装
use-package
拓展 - 在 Emacs 配置文件中写下:
1(use-package edit-server
2 :ensure t
3 :commands edit-server-start
4 :init (if after-init-time
5 (edit-server-start)
6 (add-hook 'after-init-hook
7 #'(lambda() (edit-server-start))))
8 :config (setq edit-server-new-frame-alist
9 '((name . "Edit with Emacs FRAME")
10 (top . 200)
11 (left . 200)
12 (width . 80)
13 (height . 25)
14 (minibuffer . t)
15 (menu-bar-lines . t))))
即可。