Lugaru's Epsilon
Programmer's
Editor

Context:
Epsilon User's Manual and Reference
   Commands by Topic
      Language Modes
         . . .
         Batch Mode
         C Mode
            Other C mode Features
         Configuration File Mode
         . . .

Previous   Up    Next
C Mode  Commands by Topic   Configuration File Mode


Epsilon User's Manual and Reference > Commands by Topic > Language Modes > C Mode >

Other C mode Features

In C mode, the Alt-<Down> and Alt-<Up> keys move to the next or previous #if/#else/#endif preprocessor line. When starting from such a line, Epsilon finds the next/previous matching one, skipping over inner nested preprocessor lines. Alt-] and Alt-[ do the same. Press Alt-i to display a list of the preprocessor conditionals that are in effect for the current line.

When the cursor is on a brace, bracket, or parenthesis, Epsilon will try to locate its matching brace, bracket, or parenthesis, and highlight them both. If the current character has no match, Epsilon will not highlight it. Set the variable auto-show-c-delimiters to zero to disable this feature.

Press Alt-' to display a list of all functions and global variables defined in the current file. You can move to a definition in the list and press <Enter> and Epsilon will go to that definition, or press Ctrl-G to remain at the starting point. By default, this command skips over external declarations. With a prefix numeric argument, it includes those too. Also see the list-which-definitions variable.

Epsilon normally auto-fills text in block comments as you type, breaking overly long lines. See the c-auto-fill-mode variable. As with normal auto-fill mode (see Formatting Text), use Ctrl-X F to set the right margin for filling. Set the c-fill-column variable to change the default right margin in C mode buffers. Set fill-c-comment-plain nonzero if you want block comments to use only spaces instead of a * on successive lines.

You can manually refill the current paragraph in a block comment (or in a comment that follows a line of code) by pressing Alt-q. If you provide a numeric prefix argument to Alt-q, say by typing Alt-2 Alt-q, it will fill using the current column as the right margin.

Epsilon's tagging facility isn't specific to C mode, so it's described elsewhere (see Tags). But it's one of Epsilon's most useful software development features, so we mention it here too.

Whenever you use the find-file command to read in a file with one of the extensions .c, .h, .e, .y, .cpp, .cxx, .java, .inl, .hpp, .idl, .acf, .cs, .i, .ii, .m, .mi, .mm., .mmi, or .hxx, Epsilon automatically enters C mode. See Language Modes for information on adding new extensions to this list, or preventing Epsilon from automatically entering C mode. For file names without a suffix, Epsilon examines their contents and guesses whether the file is C++, Perl, some other known type, or unrecognizable.

Standard bindings:

  C Mode only: Alt-], Alt-<Down>  forward-ifdef
 C Mode only: Alt-[, Alt-<Up>  backward-ifdef
 C Mode only: Alt-q  fill-comment
 Alt-'  list-definitions
 Alt-i  list-preprocessor-conditionals
 



Previous   Up    Next
C Mode  Commands by Topic   Configuration File Mode


Lugaru Copyright (C) 1984, 2012 Lugaru Software Ltd. All Rights Reserved.