Request: Treat ".emacs" files as Lisp code by default

18 views
Skip to first unread message

Andrew Pennebaker

unread,
Jul 10, 2014, 2:18:58 PM7/10/14
to vim...@googlegroups.com
Emacs kindly treats ".vimrc" files as VimScript. It would be nice if Vim reciprocated, treating ".emacs" files as Lisp code.

This is helpful when temporarily switching to a different editor to fix configuration, or when editing files on computers where emacs and/or vim are not yet installed.

Gary Johnson

unread,
Jul 10, 2014, 3:10:57 PM7/10/14
to vim...@googlegroups.com
On 2014-07-10, Andrew Pennebaker wrote:
> Emacs kindly treats ".vimrc" files as VimScript. It would be nice
> if Vim reciprocated, treating ".emacs" files as Lisp code.

It does, at least in Vim 7.4.283. You can see this by searching
$VIMRUNTIME/filetype.vim for ".emacs" and you can verify it as
follows.

$ vim .emacs
:set ft?
filetype=lisp

Regards,
Gary

Andrew Pennebaker

unread,
Jul 10, 2014, 3:18:29 PM7/10/14
to vim...@googlegroups.com
Oh, awesome!



--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to a topic in the Google Groups "vim_use" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vim_use/q00AevVuHWE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vim_use+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Cheers,

Andrew Pennebaker
Reply all
Reply to author
Forward
0 new messages