- Subject: Re: [jed-users] YAML mode?
- From: jed@xxxxxxxxxxx (John E. Davis)
- Date: Thu, 23 Jun 2016 21:53:26 -0400
Mauricio Vergara Ereche <mave@xxxxxxxxx> wrote:
> Do you have any tips for a better mode to use or to where to found a proper
> yaml file?
I am not sure what features you are looking for, but you might try
playing with the following:
autoload ("text_indent_relative", "textmode");
define yaml_mode ()
{
variable mode = "yaml";
no_mode ();
set_mode (mode, 0);
ifnot (keymap_p (mode))
make_keymap (mode);
use_keymap (mode);
USE_TABS=0;
definekey ("text_indent_relative", "\t", mode);
}
This binds the TAB key to the text_indent_relative function:
The `text_indent_relative' function inserts enough whitespace to
move the editing point to the next indentation level defined by the
whitespace pattern of the previous non-blank line. If the current
point is beyond the last indentation level of the reference line,
then a literal TAB will be inserted into the buffer.
I hope this helps in some way.
--John
_______________________________________________
For list information, visit <http://jedsoft.org/jed/mailinglists.html>.
[2016 date index]
[2016 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]