我花了很多时间来习惯Emacs,但是如果没有额外的脚本,我想从Coda这样的普通编辑器中获得的一切都是不可能的.
我想恢复以前的一切.
拆分窗口,它们的位置,打开的文件/ shell /调试器.一切都恢复原样.Coda可以做到这一点,Eclipse可以做到这一点,任何事情都可以做到这一点.
当我需要Emacs的任何常规功能时,它总是需要大量的脚本才能拥有它.我以为我真的会死于pyflakes,代码颜色,缩小窗口绑定和其他20个脚本,我甚至不记得了...为什么这么多基本的东西没有集成?
适合初学者的好书?
在"选项">"自定义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)
我有这个工作.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)
| 归档时间: |
|
| 查看次数: |
4334 次 |
| 最近记录: |