View
396
Download
0
Tags:
Embed Size (px)
DESCRIPTION
This is my presentation for emacs, it contains almost all the basic keys and basic featuers. This slides is created by beamer, you can find the source code at https://github.com/alex8866/Beamer/tree/master/Alex
...
.
...
.
...
.
...
.
...
.
...
.
...
.
...
.
...
.
...
.
GNU Emacs
Lingfei Kong
lkong@redhat.com
November 13, 2014
lkong (RedHat) GNU Emacs November 13, 2014 1 / 48
Agenda1 Author2 Why Emacs3 Emacs Basic Features
Key introduceAs a editorProgramming
4 Emacs Other FeaturesGTD, CalendarBrowser, picture readerIRCGameinfo and man documentOrg-mode
5 Reference6 Q & A
. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .
...
.
...
.
...
.
...
.
...
.
...
.
...
.
...
.
...
.
...
.
Author
Agenda
1 Author2 Why Emacs3 Emacs Basic Features
4 Emacs Other Features5 Reference6 Q & A
lkong (RedHat) GNU Emacs November 13, 2014 3 / 48
...
.
...
.
...
.
...
.
...
.
...
.
...
.
...
.
...
.
...
.
Author
Richard Stallman
Figure 1: Richard Stallman
lkong (RedHat) GNU Emacs November 13, 2014 4 / 48
...
.
...
.
...
.
...
.
...
.
...
.
...
.
...
.
...
.
...
.
Why Emacs
Agenda
1 Author2 Why Emacs3 Emacs Basic Features
4 Emacs Other Features5 Reference6 Q & A
lkong (RedHat) GNU Emacs November 13, 2014 5 / 48
...
.
...
.
...
.
...
.
...
.
...
.
...
.
...
.
...
.
...
.
Why Emacs
Org-modeBuffer management, very fast when switch buffers or filesHave very powerful featuresCan do many things in one emacs sessionDirectory EditorBookmark managementCan configure as a IDE (Python & C & Other language)
lkong (RedHat) GNU Emacs November 13, 2014 6 / 48
...
.
...
.
...
.
...
.
...
.
...
.
...
.
...
.
...
.
...
.
Why Emacs
Org-modeBuffer management, very fast when switch buffers or filesHave very powerful featuresCan do many things in one emacs sessionDirectory EditorBookmark managementCan configure as a IDE (Python & C & Other language)
lkong (RedHat) GNU Emacs November 13, 2014 6 / 48
...
.
...
.
...
.
...
.
...
.
...
.
...
.
...
.
...
.
...
.
Why Emacs
Org-modeBuffer management, very fast when switch buffers or filesHave very powerful featuresCan do many things in one emacs sessionDirectory EditorBookmark managementCan configure as a IDE (Python & C & Other language)
lkong (RedHat) GNU Emacs November 13, 2014 6 / 48
...
.
...
.
...
.
...
.
...
.
...
.
...
.
...
.
...
.
...
.
Why Emacs
Org-modeBuffer management, very fast when switch buffers or filesHave very powerful featuresCan do many things in one emacs sessionDirectory EditorBookmark managementCan configure as a IDE (Python & C & Other language)
lkong (RedHat) GNU Emacs November 13, 2014 6 / 48
...
.
...
.
...
.
...
.
...
.
...
.
...
.
...
.
...
.
...
.
Why Emacs
Org-modeBuffer management, very fast when switch buffers or filesHave very powerful featuresCan do many things in one emacs sessionDirectory EditorBookmark managementCan configure as a IDE (Python & C & Other language)
lkong (RedHat) GNU Emacs November 13, 2014 6 / 48
...
.
...
.
...
.
...
.
...
.
...
.
...
.
...
.
...
.
...
.
Why Emacs
Org-modeBuffer management, very fast when switch buffers or filesHave very powerful featuresCan do many things in one emacs sessionDirectory EditorBookmark managementCan configure as a IDE (Python & C & Other language)
lkong (RedHat) GNU Emacs November 13, 2014 6 / 48
...
.
...
.
...
.
...
.
...
.
...
.
...
.
...
.
...
.
...
.
Why Emacs
Org-modeBuffer management, very fast when switch buffers or filesHave very powerful featuresCan do many things in one emacs sessionDirectory EditorBookmark managementCan configure as a IDE (Python & C & Other language)
lkong (RedHat) GNU Emacs November 13, 2014 6 / 48
...
.
...
.
...
.
...
.
...
.
...
.
...
.
...
.
...
.
...
.
Emacs Basic Features
Agenda
1 Author2 Why Emacs3 Emacs Basic Features
4 Emacs Other Features5 Reference6 Q & A
lkong (RedHat) GNU Emacs November 13, 2014 7 / 48
...
.
...
.
...
.
...
.
...
.
...
.
...
.
...
.
...
.
...
.
Emacs Basic Features Key introduce
Agenda
1 Author2 Why Emacs3 Emacs Basic Features
Key introduceAs a editorProgramming
4 Emacs Other Features
GTD, CalendarBrowser, picture readerIRCGameinfo and man documentOrg-mode
5 Reference6 Q & A
lkong (RedHat) GNU Emacs November 13, 2014 8 / 48
...
.
...
.
...
.
...
.
...
.
...
.
...
.
...
.
...
.
...
.
Emacs Basic Features Key introduce
Key introduce
Emacs KeyC = ControlM = Alt = EscDel = Backspace
Emacs Configure/.emacs/.emacs.d
Install PackagesM-x package-list-packages
lkong (RedHat) GNU Emacs November 13, 2014 9 / 48
...
.
...
.
...
.
...
.
...
.
...
.
...
.
...
.
...
.
...
.
Emacs Basic Features Key introduce
Key introduce
Emacs KeyC = ControlM = Alt = EscDel = Backspace
Emacs Configure/.emacs/.emacs.d
Install PackagesM-x package-list-packages
lkong (RedHat) GNU Emacs November 13, 2014 9 / 48
...
.
...
.
...
.
...
.
...
.
...
.
...
.
...
.
...
.
...
.
Emacs Basic Features Key introduce
Key introduce
Emacs KeyC = ControlM = Alt = EscDel = Backspace
Emacs Configure/.emacs/.emacs.d
Install PackagesM-x package-list-packages
lkong (RedHat) GNU Emacs November 13, 2014 9 / 48
...
.
...
.
...
.
...
.
...
.
...
.
...
.
...
.
...
.
...
.
Emacs Basic Features As a editor
Agenda
1 Author2 Why Emacs3 Emacs Basic Features
Key introduceAs a editorProgramming
4 Emacs Other Features
GTD, CalendarBrowser, picture readerIRCGameinfo and man documentOrg-mode
5 Reference6 Q & A
lkong (RedHat) GNU Emacs November 13, 2014 10 / 48
...
.
...
.
...
.
...
.
...
.
...
.
...
.
...
.
...
.
...
.
Emacs Basic Features As a editor
Open, Save, Save as, Close file, Exit emacs I
C-x C-f: Visit a file (find-file).C-x C-r: Visit a file for viewing, without allowing changes to it(find-file-read-only).C-x C-v: Visit a different file instead of the one visited lastC-x C-s: Save the current buffer to its file (save-buffer).C-x s: Save any or all buffers to their files (save-some-buffers).C-x C-w: Save the current buffer with a specified file name(write-file).C-x C-c: Offer to save each buffer, then kill the current connection. Ifthe current frame has no client, kill Emacs itself.C-x i: Insert contents of file FILENAME into buffer after point. Setmark after the inserted text.C-x b: Display buffer BUFFER-OR-NAME in the selected window.lkong (RedHat) GNU Emacs November 13, 2014 11 / 48
...
.
...
.
...
.
...
.
...
.
...
.
...
.
...
.
...
.
...
.
Emacs Basic Features As a editor
Open, Save, Save as, Close file, Exit emacs II
C-x C-b: Display a list of existing buffers.C-x k: Kill the current buffer.
lkong (RedHat) GNU Emacs November 13, 2014 12 / 48
...
.
...
.
...
.
...
.
...
.
...
.
...
.
...
.
...
.
...
.
Emacs Basic Features As a editor
Buffer
C-x , C-x M-x rename-bufferC-x C-b:. in the first field of a line indicates that the buffer is current. %indicates a read-only buffer. indicates that the buffer ismodified.d: Flag the buffer for deletion (killing)s: Flag the buffer for saving (Buffer-menu-save)x: Perform all flagged deletions and savesu: Remove all flags from the current line, and move downf/ENTER: Select this lines buffer in this window.q: Quit bu