记住所有打开的文件,其中包含拆分窗口及其在Emacs中的位置

hol*_*lms 16 emacs

我花了很多时间来习惯Emacs,但是如果没有额外的脚本,我想从Coda这样的普通编辑器中获得的一切都是不可能的.

我想恢复以前的一切.

拆分窗口,它们的位置,打开的文件/ shell /调试器.一切都恢复原样.Coda可以做到这一点,Eclipse可以做到这一点,任何事情都可以做到这一点.

当我需要Emacs的任何常规功能时,它总是需要大量的脚本才能拥有它.我以为我真的会死于pyflakes,代码颜色,缩小窗口绑定和其他20个脚本,我甚至不记得了...为什么这么多基本的东西没有集成?

适合初学者的好书?

sas*_*arz 8

在"选项">"自定义Emacs"下查看.

听起来你想要启用两个功能:

  • "保存位置",可在下次加载时保存每个文件中的位置.
  • "桌面",保存您当前加载的所有文件.

或者,如果您想编辑.emacs文件:

(custom-set-variables
  ;; custom-set-variables was added by Custom.
  ;; If you edit it by hand, you could mess it up, so be careful.
  ;; Your init file should contain only one such instance.
  ;; If there is more than one, they won't work right.
  '(desktop-enable t nil (desktop))
  '(save-place t nil (saveplace)))
Run Code Online (Sandbox Code Playgroud)


mat*_*0ne 5

我有这个工作.Emacs总是在我离开时完全重新开始,除非它崩溃......:

http://www.gentei.org/~yuuji/software/windows.el

这将保存所有窗口吐出和打开缓冲区:

http://www.emacswiki.org/emacs/SavePlace

这将保存您在文件中的位置.这里大致如何设置:

(require 'windows)
(require 'recentf)

;; -- Load the saved windows automatically on boot
(add-hook 'window-setup-hook 'resume-windows)

;; -- Save place in file
(setq-default save-place t)

;; --  Use this command to quit and save your setup
(define-key ctl-x-map "C" 'see-you-again)

;; -- Set up window saving!! Place at end of .emacs file
(win:startup-with-window)
Run Code Online (Sandbox Code Playgroud)


Pie*_*rre 3

我发现方便地保存和恢复框架配置,它可能正在做你正在寻找的事情。