6/11/2023 0 Comments Emacs page down shortcutWhen using a minor mode that supports it. Most minor modes for programming languages do. When writing text, this will fix up line breaks in the paragraph.Ĭ-c C-c Comment out region. M-x ispell-buffer Check spelling of current buffer. M-w Copy the selected region to the clipboard.Ĭ-w Cut the selected region and put the text in the clipboard.Ĭ-k Cut from the cursor to the end of the line, putting the text in the clipboard.Ĭ-y Paste / yank the most recent text in the clipboard. M-h Set the region to the current paragraph Copy & Paste This is a marker for the beginning of a region. Moving the cursor to another position will set the end of the region, called the ‘point’.Ĭ-x h Select all. Create a region containing the whole buffer. M-x goto-line or M-g g Goto the indicated line.Ĭ-Space Set the mark. M-x find-grep-dired Search a directory recursively for all files that contain a regular expression. TAB TAB will give a buffer completion list.Ĭ-x C-b List all open buffers. Windows & BuffersĬ-x b Switch buffers. The default is to switch to the most recent buffer before your current one. Very useful if you are looking for something but don’t know the exact command. M-x describe-bindings Show a list of all the current key bindings. This shows you all available emacs shortcuts and the function invoked by the shortcut.į1 f Type a function name and get a short description of what it does.į1 a Find apropos commands. Entering a search term will give you a list of commands and key bindings containing the search term. Here is a list of shortcuts anyone on the path to becoming an emacs guru should be familiar with. This shortcut reference card covers mostly intermediate and advanced shortcuts for GNU emacs (most of them will work with Xemacs as well.) I learned some great new shortcuts while making this cheat sheet I hope they will be helpful to GrokCode’s readers as well. Intimate knowledge of your code editor is required to be competent and productive developer.
0 Comments
Leave a Reply. |