EMACS

From eLinux.org
Jump to: navigation, search

Emacs Programming

  1. Install emacs23 & ecb using Alt+list packages
  2. Get emacs.c & rename & copy it to ~/.emacs [gitbub.com/emacs_atclib]
  3. scripts/checkpatch.pl --file --terse at.c


Sr. No. Commands Comment's
1 F10 To Open File Menu Bar
2 C->F To Find Function Definition
3 Alt + x list-packages List packages to install e.g. Install ecb
4 Alt + x + ecb-activate Start ECB
5 ecb-goto-window-sources Switch to sources
6 ecb-goto-window-methods Switch to method window
7 C-c . g h Go to history
8 C-c . g m Go to methods
9 C-c . g s Go to sources
10 C-c . g d Go to directories
11 C-c . g 1 Main buffer
12 Example Example
13 Example Example
14 Example Example
15 Alt + eshell Get Shell Inside emacs
16 Ctrl+x Ctrl+q Make buffer Read Only
17 Ctrl+v Scroll Up
18 Alt+v Scroll Down
19 C-M-n (Ctrl+Alt+n) Forward Match Brackes/Parenthesis
20 C-M-u (Ctrl+Altu) Backward Match Brackets/Parenthesis
21 Example Example
22 Example Example
23 Example Example
24 Example Example
25 Example Example
26 Example Example
27 Example Example
28 Example Example
29 Example Example
30 Example Example
31 Example Example
32 Example Example
33 Example Example
34 Example Example
35 Example Example
36 Example Example
37 Example Example
38 Example Example
39 Example Example
40 Example Example

Possible completions are:

0==>Find functions calling a function C-c s c

1==>Find files #including a file C-c s i

A==>Find a file C-c s f C==>Cscope Database

F==>Find global definition C-c s g N==>Next file C-c s N

P==>Previous file C-c s P a==>Find assignments to symbol C-c s =

c==>Find called functions C-c s C d==>Display *cscope* buffer C-c s b

e==>Find egrep pattern C-c s e f==>Find symbol C-c s s

g==>Find global definition no prompting C-c s G

m==>Pop mark C-c s u n==>Next symbol C-c s n

o==>Options p==>Previous symbol C-c s p

t==>Find text string C-c s t

To select & search keyword :

C-s C-w  : Hitting C-w repeatedly increases the search with additional word

Ref : [http://tuhdo.github.io/index.html]