Advertisement
pdaogu

Ex 2.2

Sep 18th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.66 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main () {
  4.   printf("%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s",
  5.      "==================== Emacs Command Tutor ======================\n",
  6.      "================== Author: Nguyen Duc Hung ====================\n",
  7.      "== Created as exercise of C Programming Introduction Course ===\n",
  8.      "C-x C-f: Find and open file existed/create a new file in buffer\n",
  9.      "C-x C-s: Save the current file\n",
  10.      "C-x C-w: Write the text to an alternate name\n",
  11.      "C-x C-c: Close emacs\n",
  12.      "C-f: Move cursor to forward char\n",
  13.      "C-b: Move cursor to backward char\n",
  14.      "M-f: Move cursor to forward word\n",
  15.      "M-b: Move cursor to backward word\n",
  16.      "C-p: Move cursor to previous line\n",
  17.      "C-n: Move cursor to next line\n",
  18.      "C-v: Scroll up one page\n",
  19.      "M-v: Scroll down one page\n",
  20.      "M-<: Go to beginning of text\n",
  21.      "M->: Go to end of text\n",
  22.      "C-space: Set beginning mark (for selection)\n",
  23.      "C-k: Delete from current position cursor to the end of line\n",
  24.      "C-w: Cut the current selection\n",
  25.      "M-w: Copy the current selection\n",
  26.      "C-y: Paste the copied/cut selection\n",
  27.      "C-x 1: Show only one windows that the cursor currently in\n",
  28.      "C-x 2: Split windows horizontally\n",
  29.      "C-x 3: Split windows vertically\n",
  30.      "C-x 0: Close windows that the cursor currently in\n",
  31.      "C-x o: Move the cursor to the next windows\n",
  32.      "C-x k: Kill the buffer that cursor currently in\n",
  33.      "C-x b: Create/open a buffer\n",
  34.      "C-s: Search a string forward\n",
  35.      "C-r: Search a string backward\n",
  36.      "M-%: Replace a string by another\n",
  37.      "C-x u: Undo\n",
  38.      "C-x C-q: Toggle read-only buffer mode\n");
  39.   return 0;
  40. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement