* vim modlines
@ 2008-08-30 11:16 TheLonelyStar
2008-08-30 11:40 ` David Hansen
0 siblings, 1 reply; 5+ messages in thread
From: TheLonelyStar @ 2008-08-30 11:16 UTC (permalink / raw)
To: Help-gnu-emacs
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.
^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <mailman.17989.1220095001.18990.help-gnu-emacs@gnu.org>]
* Re: vim modlines
[not found] <mailman.17989.1220095001.18990.help-gnu-emacs@gnu.org>
@ 2008-08-30 12:25 ` harven
2008-08-30 13:49 ` TheLonelyStar
0 siblings, 1 reply; 5+ messages in thread
From: harven @ 2008-08-30 12:25 UTC (permalink / raw)
To: help-gnu-emacs
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.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-08-31 0:19 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-30 11:16 vim modlines TheLonelyStar
2008-08-30 11:40 ` David Hansen
[not found] <mailman.17989.1220095001.18990.help-gnu-emacs@gnu.org>
2008-08-30 12:25 ` harven
2008-08-30 13:49 ` TheLonelyStar
2008-08-31 0:19 ` Lennart Borgman (gmail)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).