English 中文(简体)
重新制定定义和在不关闭的情况下重载马桶,或重新启用徽章和重开缓冲
原标题:Reset definitions and reload .emacs without closing, or restart Emacs and re-open buffers
  • 时间:2011-10-04 20:31:18
  •  标签:
  • emacs

根据我的理解,以下指挥顺序:

M-x load-file ENTER
~/.emacs
ENTER

页: 1 然而,从我对其他论坛的看法来看,这些论坛并没有保证给我一个经过彻底修改的组合,即它们会迫使埃恩茨平息新的组合文件,并重载经修改的变数和功能定义,但不会删除以前装满的定义。

因此,我的问题是:

  1. Is it possible to clear ups Emacs s definitions in memory and re-load .emacs without having to fully restart Emacs?
  2. If the above is not possible, is there a way to restart Emacs (so that I parses my .emacs file from scratch) asking it to re-open all buffers that I have open?
最佳回答

您的<代码>.emacs可能已经做的一切都是不可能的。

您可以节约并恢复附有<代码>desktop的学习课程。 附有<代码>M-x desktop-save RET C-x C-c,然后用<代码>emacs-f desktop/code>恢复。

See (info "(emacs) Saving Emacs Sessions” for more information. (你还可以<条码>定制。 因此,这种行为是违约行为。

问题回答

这个问题是重复的,但是由于它有一个公认的答案,我重复了我对桌面图书馆的评论,即它储存一定数量的状态(天气和当地变数),每个缓冲储存它所节省的费用,然后是restores that same State 当它重载这些档案时。

当然,就你而言,这正是你想要做到的。

将这两种办法结合起来,将使你能够重新启用服务台,同时恢复档案,届时你可以重回所有档案。





相关问题
suppress additional braces in emacs electric mode

I started using ruby-electric-mode. I like it except that I am used to closing open brackets myself (the other pairing are still useful to me). How can I make emacs suppress additional brackets when ...

Setting up an emacs environment in windows?

I am currently constrained to a windows dev box and I want to migrate my projects from eclipse to emacs. What are some good references on setting up an emacs dev environment for windows? Anything ...

Emacs Setting which-function-mode

I would like to have which-function-mode on by default when I open up Emacs. I ve added the following lines to my .emacs file. (setq which-func-mode t) (setq which-function-mode t) When I open ...

Enabling go mode for emacs

I don t seem to be able to enable a go mode for emacs. C mode doesn t work without semicolons. The best I have found is the JavaScript mode by Karl Landstrom, since JavaScript also doesn t require ...

Custom Emacs key bindings are not working

The key bindings I ve defined in my .emacs file aren t working. Here s the file: ;init modes (menu-bar-mode 0) (tool-bar-mode 0) (cua-mode) (column-number-mode) (fset perl-mode cperl-mode) (cperl-...

eval during emacs lisp macro expansion

How can I fix the simple macro foo in (elisp)Eval During Expansion? None of the followings work: (defmacro foo1 (a) `(setq (eval ,a) t)) (defmacro foo2 (a) `(setq ,(eval a) t)) (defmacro foo3 (...

Get local cvs comment history when committing file/s in emacs

I often commit files with similar cvs comment but not in a single operation. I would like to able to bring up previous comments I ve used in a previous commit when I am in the process of writing a ...

热门标签