sponsor Vim development Vim logo Vim Book Ad

emacsmode : Parse Emacs -*- Mode lines and set equivalent Vim options

 script karma  Rating 7/5, Downloaded by 1206  Comments, bugs, improvements  Vim wiki

created by
Jerry Talkington
 
script type
ftplugin
 
description
This is a script to read the Emacs -*- Mode -*- lines that can be found at the
top of many source code files.  I don't use Emacs, but a lot of source files have the lines.

I tested this out by using it on the Mozilla code base, so the cases that are
handled are what appear there.  If there are other options that you find in
other Emacs mode lines, send me an email so that I can get them added.
 
install details
o install, simply copy emacsmode.vim an emacsmode.pl to your ~/.vim/plugin/
directory.  If you have a perl enabled Vim, you can omit the emacsmode.pl
script, since it won't ever be called.

If you install into the perl runtime directory (i.e. /usr/share/vim,) and you
don't have a perl enabled Vim, you'll have to change one line in emacsmode.vim
to point to the place where emacsmode.pl is installed.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
emacsmode-0.03.tar.gz 0.03 2004-03-28 6.0 Jerry Talkington Fixes a bug that would generate an error if a -*- line was present without a Mode: declaration.
emacsmode.tar.gz 0.02 2004-01-12 6.0 Jerry Talkington Fixes a stupid bug that would cause error messages when a file didn't contain the -*- Mode -*- line.
ip used for rating: 3.236.83.154

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github