How to edit text regions in emacs

From 清冽之泉
Revision as of 17:03, 20 November 2024 by Mwroot (talk | contribs) (Created page with "# 在 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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
  1. 在 Firefox 中,安装 Edit with Emacs 拓展
  2. 在 Emacs 中,用 package-list-packages 安装 edit-server 拓展
  3. 在 Emacs 中,用 package-list-packages 安装 use-package 拓展
  4. 在 Emacs 配置文件中写下:
(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))))

即可。