[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Set variable in derived mode before running the parent mode function
From: |
Philipp Stephani |
Subject: |
Set variable in derived mode before running the parent mode function |
Date: |
Tue, 02 Jun 2015 11:46:55 +0200 |
Hi,
I've defined a derived major mode of `python-mode' using
`define-derived-mode'. However, some of the variables set by
`python-mode' are inappropriate for the derived mode; in particular, I'd
like to disable auto-guessing of the indentation by setting
`python-indent-guess-indent-offset' to nil. However,
`define-derived-mode' has no customization point for running code before
the parent mode function. What's the best way to solve this? Using an
advice? Or not using `define-derived-mode' in the first place?
Thanks,
Philipp
--
Google Germany GmbH
Dienerstraße 12
80331 München
Registergericht und -nummer: Hamburg, HRB 86891
Sitz der Gesellschaft: Hamburg
Geschäftsführer: Graham Law, Christine Elizabeth Flores
Diese E-Mail ist vertraulich. Wenn Sie nicht der richtige Adressat sind,
leiten Sie diese bitte nicht weiter, informieren Sie den Absender und löschen
Sie die E-Mail und alle Anhänge. Vielen Dank.
This e-mail is confidential. If you are not the right addressee please do not
forward it, please inform the sender, and please erase this e-mail including
any attachments. Thanks.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Set variable in derived mode before running the parent mode function,
Philipp Stephani <=