Mail Archives: djgpp/1999/11/29/05:14:35
On Mon, 29 Nov 1999, Leon wrote:
> 1) is there a documented way to create your own modes (ie c++, c,
> funadmental, myOwn)
You need to download the Elisp manual from a GNU FTP site. It explains
this. But I seriously doubt that you'd need that, since Emacs already
has special modes for every language on Earth.
> 2) with the existing c++ mode - do people find that color (ie font-lock)
> mode only colors lines that are not tabbed (except comment lines)
> for example:
>
> if ()
>
> would be coloured blue but the moment i tab it - it goes back to black...
That's because Emacs treats this as a function, unless it is indented.
You may want to turn on font-lock-maximum-decoration. See the provided
example _emacs init file (called _emacs.xmpl) for how to set up the color
syntax highlighting. You might just rename it to _emacs, restart Emacs
and see if that does what you want.
> 3) any documented way to *select* text? I mean like in modern traditional
> editors where one can hold shift key and then use up/down/left/right
> arrows?
Type "Alt-x pc-selection-mode RET", and you will have this.
> and then to copy the selection?
See above.
> I have tried to search the FAQ and tutorial - but to no avail.
Use "C-h a", the `apropos' command. It will save you hours of looking.
Emacs has too many features to find them in a tutorial.
- Raw text -