Fundamental mode and undo-tree-mode

Linus Arver linusarver at gmail.com
Sat Jan 4 02:13:40 CET 2014


On Mon, Dec 30, 2013 at 04:01:45PM -0500, Barry OReilly wrote:
>    I have this after loading Evil at init.el top level:
> 
>    (require 'undo-tree)
>    (global-undo-tree-mode 1)
> 
>    Evil makes the same call if undo-tree is available on the load-path, so
>    it's not necessary.

I'm sorry, I don't quite understand what you're trying to say. I don't
have those lines in my .emacs, and I am using the latest Evil. My
problem is that undo-tree is loaded, but disabled when I open a file
with an unrecognized extension (e.g., a file named "foo",
but not "foo.txt").

Again, the strange thing is that undo-tree is enabled on the *Messages*
buffer, but disabled (turned off) in the "foo" buffer.

-L

>    On Mon, Dec 30, 2013 at 3:49 PM, Linus Arver <linusarver at gmail.com> wrote:
> 
>      Hello list,
> 
>      When I open a file with an unrecognized extension, my Emacs opens it in
>      Fundamental mode (which is what I want). I have Evil enabled with
> 
>          (require 'evil)
>          (evil-mode 1)
> 
>      but the file's buffer does not have undo-tree-mode enabled. I have to
>      manually enable it with
> 
>          M-x undo-tree-mode
> 
>      . I tried adding
> 
>          (global-undo-tree-mode)
> 
>      in my ~/.emacs, but I get nothing. I also tried adding
> 
>          (add-hook 'evil-after-load-hook
>              (lambda ()
>                  (undo-tree-mode)
>              )
>          )
> 
>      but it doesn't help. If I set my emacs' default major mode to text-mode,
>      then undo-tree gets enabled and everything works, but I don't want to
>      use this workaround. I also tried deleting all of my ~/.emacs except for
>      these lines
> 
>          (require 'evil)
>          (evil-mode 1)
> 
>      , but I still get the same behavior. Interestingly, the *Messages*
>      buffer has undo-tree-mode enabled with this same configuration.
> 
>      Does anyone have the same issues with Fundamental Mode + Undo Tree Mode
>      when opening a file?
> 
>      -L
> 
>      _______________________________________________
>      implementations-list mailing list
>      implementations-list at lists.ourproject.org
>      https://lists.ourproject.org/cgi-bin/mailman/listinfo/implementations-list

> _______________________________________________
> implementations-list mailing list
> implementations-list at lists.ourproject.org
> https://lists.ourproject.org/cgi-bin/mailman/listinfo/implementations-list




More information about the implementations-list mailing list