[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

define-key for a major-mode, 'face and external program

From: pascal chenevas
Subject: define-key for a major-mode, 'face and external program
Date: Sat, 8 Sep 2012 22:38:07 +0000


First of all I would like to say that I'm starting for a week to program in LIsp and to use Emacs too.
I'm reading such documentation like the emacswiki, the "intoduction to programming in Emacs Lisp".

For a week I have planed to create a major-mode and from there I can launch a set of programs.
My major-mode should have a main menu like mu4e.el.

To start with coding I have used the text-mode.el and the source code of mu4e.

Draft  of the main menu:

<center>Welcome Message </center>

<Menu1>General options</Menu1>
[Q] to quit
[F3] to start
[F4] to start

Note : The  Welcome message should be in blue and the <Menu>text</Menu> in bold (or in a different color).

My questions are the following:

1) I have tried several set of functions to define a local-map that I can use for example F2 to run an external program and I still don't understand why my set of "local keys" are not loaded. I get the error message: <f2> is undefined.
2) I cannot get working to have a set of 'face to put a text in blue and the other one in bold.
3) I can run external program with (shell-command "cmd")  but I cannot get Emacs "free" to do anything else I would like (this part is not included in the source code I have attached).

Attached to the mail you will find the source code I have written.

Many tanks for your help.


Attachment: rct-mode.el
Description: Binary data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]