Guest User

Untitled

a guest
Oct 18th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.46 KB | None | 0 0
  1. Cursor Movement and Location
  2.  
  3. This reference guide lists the commands available within GNU Emacs for moving the cursor, and reporting its location.
  4. NOTICE - New forum for all UNIX learners, users and programmers - click here
  5.  
  6. arrow keys (if available) N/A Move cursor.
  7. ----------------------------------------------------------------------------------------------------------------------------
  8. C-a beginning-of-line Move to beginning of line.
  9. C-e end-of-line Move to end of line.
  10. C-f forward-char Move forward one character.
  11. C-b backward-char Move backward one character.
  12. M-f forward-word Move forward one word.
  13. M-b backward-word Move backward one word.
  14. C-n next-line Move down a line (creating the next line, if necessary).
  15. C-p previous-line Move up a line.
  16. M-r move-to-window-line Move to left margin, vertically centered in window.
  17. M-< beginning-of-buffer Move to top of buffer.
  18. M-> end-of-buffer Move to end of buffer.
  19. M-x goto-char goto-char Read a number and go to that buffer position (start = 1).
  20. M-x goto-line goto-line Read a number and go to that line (first line = 1).
  21. C-x C-n set-goal-column Set current column as 'goal column'. From then on, the C-n and C-p commands jump to that column,
  22. or the nearest possible column.
  23. C-u C-x C-n N/A Cancel the 'goal column', and return to normal behaviour.
  24. M-x what-page what-page Display page number and line number (within page) of cursor location.
  25. M-x what-line what-line Display line number (within buffer) of cursor location.
  26. M-x line-number-mode line-number-mode Display line number automatically (toggle).
  27. M-= count-lines-region Print number of lines in current region.
  28. C-x = what-cursor-postition Print character code, character position and column of the cursor location.
Add Comment
Please, Sign In to add comment