[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: vim modlines
From: |
harven |
Subject: |
Re: vim modlines |
Date: |
Sat, 30 Aug 2008 05:25:41 -0700 (PDT) |
User-agent: |
G2/1.0 |
On Aug 30, 1:16 pm, TheLonelyStar <nab...@lonely-star.org> wrote:
> Hi,
>
> In the vim the last line of a file can be a "modline" The modline then tells
> vim thins like whether to use tabs or spaces and other formating
> information.
>
> Can this somehow be done in emacs to?
>
> Thanks
> Nathan
> --
> View this message in
> context:http://www.nabble.com/vim-modlines-tp19232470p19232470.html
> Sent from the Emacs - Help mailing list archive at Nabble.com.
In emacs, the first line can be used as a modline. For example, a file
beginning by
-*- mode: flyspell; ispell-dictionary: "english"; coding: latin-1 -*-
will select latin-1 encoding and operate spell-checking on the fly
with an english dictionary.
The following two lines
-*- mode: auto-fill; mode: hi-lock; indent-tabs-mode: nil-*-
;; Hi-lock: (("[0-9]+" (0 (quote hi-blue-b) t)))
set automatic wrapping of lines with length greater than the width of
the buffer, highlight all numbers in a blue color, and use spaces
instead of tabs.
- vim modlines, TheLonelyStar, 2008/08/30
- Re: vim modlines,
harven <=