Difference between revisions of "怎样在 Emacs 中编辑文字区域"
Jump to navigation
Jump to search
Line 3: | Line 3: | ||
# 在 Emacs 中,用 package-list-packages 安装 <code> use-package </code> 拓展 |
# 在 Emacs 中,用 package-list-packages 安装 <code> use-package </code> 拓展 |
||
# 在 Emacs 配置文件中写下: |
# 在 Emacs 配置文件中写下: |
||
− | <syntaxhighlight lang="bash" line> |
+ | <syntaxhighlight lang="bash" line> (use-package edit-server |
− | (use-package edit-server |
||
:ensure t |
:ensure t |
||
:commands edit-server-start |
:commands edit-server-start |
Revision as of 17:01, 25 July 2024
- 在 Firefox 中,安装
Edit with Emacs
拓展 - 在 Emacs 中,用 package-list-packages 安装
server-edit
拓展 - 在 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))))
即可。