all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Paulo J. Matos" <pocm@ecs.soton.ac.uk>
To: help-gnu-emacs@gnu.org
Subject: Indentation in new major mode
Date: Mon, 22 Sep 2008 18:22:28 +0100	[thread overview]
Message-ID: <48D7D454.6030106@ecs.soton.ac.uk> (raw)

Hello,

In creating a new major mode the define-generic-mode seemed to work
quite well, with the exception that it doesn't allow me to say: hey,
these keywords adds 1 indentation step and these remove 1. So I guess I
need to use derived-mode stuff.

By doing so I have much more flexibility but now I am lacking the emacs
lisp knowledge on how to do syntax directed indentation. In this case I
really just want for some keywords to add 1 or 2 indentation steps and
some keywords to remove 1 or 2 indentation steps.

Can anyone point me in the right direction? Maybe even provide a simple
mode I can look into that does this kind of stuff?

Thanks,

Paulo Matos




                 reply	other threads:[~2008-09-22 17:22 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=48D7D454.6030106@ecs.soton.ac.uk \
    --to=pocm@ecs.soton.ac.uk \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.