什么是最好的Emacs工作区插件? [英] What is the best Emacs workspaces plugin?

查看:171
本文介绍了什么是最好的Emacs工作区插件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

按工作区,我的意思是 - 我需要保存我的打开缓冲区的状态(可能在用户指定的工作区文件中),并快速切换到另一组打开的缓冲区,例如。继续处理与另一个项目相关的文件。

By workspace, I mean - I need to save the state of my open buffers (possibly in a user specified workspace file) and quickly switch to another set of open buffers, e.g. to continue working on files related to another project.

有没有Emacs插件允许这个?你会推荐哪一个?

Is there an Emacs plugin which allows this? Which one would you recommend?

推荐答案

我使用保存访问文件工作组。事实上,工作组可能会自己做大部分想要的工作。

I use a combination of save-visited-files and workgroups. In fact, workgroups will probably do most of what you want by itself.

我的配置:

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; workgroups for windows

(setq wg-prefix-key (kbd "C-c z")
      wg-no-confirm t
      wg-file (concat emacs-persistence-directory "workgroups")
      wg-use-faces nil
      wg-switch-on-load nil)

(defun wg-load-default ()
  "Run `wg-load' on `wg-file'."
  (interactive)
  (wg-load wg-file))

(defun wg-save-default ()
  "Run `wg-save' on `wg-file'."
  (interactive)
  (when wg-list
    (with-temp-message ""
      (wg-save wg-file))))

(with-library 'workgroups
  (define-key wg-map (kbd "C-l") 'wg-load-default)
  (define-key wg-map (kbd "C-s") 'wg-save-default)
  (workgroups-mode 1)
  (add-hook 'auto-save-hook 'wg-save-default)
  (add-hook 'kill-emacs-hook 'wg-save-default))

这篇关于什么是最好的Emacs工作区插件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆