zsh-users/zsh-completions — Issue #75: Question about formatting in emacs
Author: sirech
Created: 2012-02-28 20:26:03+00:00
State: open

This is not much an issue but a question about editing completion files with emacs. The standard template for a completion file includes the following line to specify formatting in emacs:

# -*- mode: zsh; sh-indentation: 2; indent-tabs-mode: nil; sh-basic-offset: 2; -*-

I can't really get that to work so that emacs formats my completion scripts correctly. I've got two problems:

* emacs only interprets the line for me if I put it right at the beginning of the file.
* *zsh* is not a recognized mode. I've had more luck with *Shell-Script*. I can't seem to find any *zsh-mode* on the internet.

So if anyone that uses emacs could share some tips I'd be very grateful.