DOC PREVIEW
IUPUI CS 265 - COMMANDS

This preview shows page 1 out of 4 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 4 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 4 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

UnixEmacs Basic CommandsC-x C-fM-x find-fileC-x iMoving Among BuffersC-x bM-x switch-to-bufferUsing Emacs “Windows”C-x 2M-x split-window-verticallyMoving Around an Emacs BufferM-<M-x beginning-of-bufferCutting (Deleting) TextC-dM-x delete-charMarking Text to Delete, Move or CopyC-@ or C-SPACEBARM-x set-mark-commandSearching & Replacing TextC-sM-x isearch-forwardWildcard SearchesVarious Other CommandsC-x u*NoneEmacs Command Cheat SheetStandard Emacs Commands and Command LinesEmacs Basic CommandsCommand Keystroke Command-LineOpen a file C-x C-f M-x find-fileInsert another file at the current cursor positionC-x i M-x insert-fileSave current file C-x C-s M-x save-bufferSave current file with another name (similar to “Save As”)C-x C-w M-x write-fileOpen an additional file C-x C-f M-x find fileMoving Among BuffersCommand Keystroke Command-LineMove to the previous buffer C-x b M-x switch-to-bufferDisplay buffer list C-x C-b M-x list-buffersDelete current buffer C-x k M-x kill-bufferUsing Emacs “Windows”Command Keystroke Command-LineCreate two windows C-x 2 M-x split-window-verticallyMove to the other window C-x o M-x other-windowPage 1 of 4Meta Key on Various Keyboards:UnixPCMacintoshCommon Abbreviations:- “M-x” means “press and thenrelease the Meta key and thenpress the “x” key- “C-x” means “press and hold the Control key and then press and release the “x” keyEmacs Command Cheat SheetStandard Emacs Commands and Command LinesDelete the current window C-x 0 M-x delete-windowDelete all other windows except the currentwindowC-x 1 M-x delete-other-windowsMoving Around an Emacs BufferCommand Keystroke Command-LineMove to the beginning of a buffer M-< M-x beginning-of-bufferMove to the end of a buffer M-> M-x end-of-bufferMove forward one character C-f M-x forward-charMove backward one character C-b M-x backward-charMove down one line C-n M-x next-lineMove up on line C-p M-x previous-lineMove forward one word M-f M-x forward-wordMove backward one word M-b M-x backward-wordMove to the end of a line C-e M-x end-of-lineMove to the beginning of a line C-a M-x beginning-of-lineMove forward one screen C-v M-x scroll upMove backward one screen M-v M-x scroll-downCutting (Deleting) TextCommand Keystroke Command-LineDelete character C-d M-x delete-charDelete previous character DEL (or BACKSPACE on some keyboards) M-x delete-backward-charDelete word M-d M-x kill-wordDelete previous word M-DEL (or M-BACKSPACE on some keyboards)M-x backward-kill-wordDelete the entire line C-k M-x kill-linePage 2 of 4Emacs Command Cheat SheetStandard Emacs Commands and Command LinesMarking Text to Delete, Move or CopyCommand Keystroke Command-LineMark the beginning of a selection C-@ or C-SPACEBAR M-x set-mark-commandDelete the marked region C-w M-x kill-regionCopy a marked region M-w or C-INSERT M-x kill-ring-savePaste (Yank) a cut or copied a region C-y M-x yankSearching & Replacing TextCommand Keystroke Command-LineIncremental search forward* C-s M-x isearch-forwardIncremental search backward* C-r M-x isearch-backwardExit incremental search* <ENTER> or <RETURN> *NoneCancel incremental search* C-g M-x keyboard-quitDelete incorrect character in search string of incremental search*DEL (or M-BACKSPACE on some keyboards) *NoneNon-incremental search forward C-s RETURN (or ENTER on some keyboards) *NoneNon-incremental search backward C-r RETURN (or ENTER on some keyboards) *NoneStart query replace M-% M-x query-replaceReplace current instance and continue on to next instanceSPACEBAR or y *NoneDon’t replace current instance, but move on to next instanceDEL (or M-BACKSPACE on some keyboards) or n*NoneReplace the current instance and then quit. (period key) *NoneReplace the current instance and then pause, (comma key) *NoneResume after pausing SPACEBAR or y *NoneReplace remaining instances without asking! *NoneBack up to previous instance ^ *NoneExit query replace RETURN (or ENTER on some keyboards) or q*None*- NOTE: An incremental search is one in which the search begins as soon as you begin typing and continues search as you typeadditional characters.Wildcard SearchesCommand Keystroke Command-LineSearch for a group of sequential characters forwardM C-s RETURN (ENTER on some keyboards) FOLLOWED BY M-x re-search-forwardPage 3 of 4Emacs Command Cheat SheetStandard Emacs Commands and Command LinesthisIsMySearchExpressio*Search for a group of sequential characters backwardM C-r RETURN (ENTER on some keyboards) FOLLOWED BY thisIsMySearchExpressio*M-x re-search-backwardSearch for a group of sequential characters forward and incrementallyM C-s M-x isearch-forward-regexpSearch for a group of sequential characters backward and incrementallyM C-r M-x isearch-backward-regexpVarious Other CommandsCommand Keystroke Command-LineUndoing recent changes C-x u *NoneUndo all changes since the last save *None M-x revert-bufferGo back to an earlier version of the current file (the file as it appeared when you first opened it)C-x C-f filename~ RETURN (ENTER on somekeyboards) FOLLOWED BYC-x C-w filename*NonePop out to your Unix prompt *None M-x shellCancel current command C-g *NonePage 4 of


View Full Document

IUPUI CS 265 - COMMANDS

Download COMMANDS
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view COMMANDS and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view COMMANDS 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?