Skip to content
The emacs major mode for editing files in the YAML data serialization format.
Emacs Lisp
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


    yaml-mode - Simple major mode to edit YAML file for emacs

    To install, just drop this file into a directory in your
    `load-path' and (optionally) byte-compile it.  To automatically
    handle files ending in '.yml', add something like:

    (require 'yaml-mode)
    (add-to-list 'auto-mode-alist '("\\.yml$" . yaml-mode))

    to your .emacs file.

    Unlike python-mode, this mode follows the Emacs convention of not
    binding the ENTER key to `newline-and-indent'.  To get this
    behavior, add the key definition to `yaml-mode-hook':

    (add-hook 'yaml-mode-hook
      '(lambda ()
        (define-key yaml-mode-map "\C-m" 'newline-and-indent)))

    yaml-mode is major mode for emacs.

    You can install yaml-mode typing below.

        % make
        % make install


        % make PREFIX=/your/home/dir
        % make install PREFIX=/your/home/dir

    see SYNOPSIS.

    Yoshiki Kurihara <> Copyright (C) 2010 by Free Software
    Foundation, Inc.

    This file is free software; you can redistribute it and/or modify it
    under the terms of the GNU General Public License as published by the
    Free Software Foundation; either version 2, or (at your option) any
    later version.

    This file is distributed in the hope that it will be useful, but WITHOUT
    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
    more details.

    You should have received a copy of the GNU General Public License along
    with GNU Emacs; see the file COPYING. If not, write to the Free Software
    Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
Something went wrong with that request. Please try again.