C-x 3: Split the window into 2 buffers, one to the left and one to the right.C-x 2: Split the window into 2 buffers, one above the.C-x C-b: See a list of all current buffers.C-x b: Switch to another buffer by entering its name.C-k: Cut ( kill) from the cursor to the end of the line.Highlight text with the mouse or by hitting C-space to set a mark and then moving the cursor to highlight a region.C-x C-w: Write a file (probably more familiar to you as Save as…).C-x C-f: Open a file (whether or not it already exists).C-g: Cancel the current action (use when there’s part of a key sequence showing in the minibuffer and you want out).For CS 251 students: these key sequences are bound to commands (functions in Emacs Lisp) within the editor just as names are bound to values in Racket and SML. Do not hold them all at once.Įmacs calls each shortcut or sequence a key binding.
If you or Emacs gets confused about what you are trying to type, use C-g (perhaps repeatedly) to cancel your current command and start fresh.Ī sequence of key presses is written like C-a C-b M-x, which meansĭo the three actions in sequence: Control and lower-case a, thenĬontrol and lower-case b, then Meta and lower-case x. The other Meta substitutes work as usual: hold whileĮmacs might complain about Super if you get the wrong one.
EMACS PAGE DOWN SHORTCUT MAC
Option (or maybe the Command ⌘ key) on a Mac keyboard.
Such key combinations are denoted C-x ( Control-x But we will not do that.Įmacs uses many key combinations involving the Control and Meta keys. This buffer runs in Lisp Interaction mode, which means that you can interactively type and evaluate expressions in the Emacs Lisp programming language. There are many “special” buffers that do not correspond to loaded files.There are modes for many programming languages that support special features like syntax highlighting, auto-indentation, and other extra language-specific commands. The most basic mode is Fundamental, which provides only the most basic Emacs editing features. The rest of the status flag indicates other information about file permissions, etc., that you are unlikely to encounter in this course. The status flag shows whether the file has been changed (shows U:**-) or remains unchanged (shows U:-).The mode line displays information about the buffer displayed in the current window.The cursor is a rectangular block also called the point.A buffer is a logical “text thing” that you are working on, typically the contents of a file. Emacs is showing the contents of a buffer within a window (or frame).Labeled Emacs interface, shown running in a wx appliance. Type Control-c to kill Emacs, then run it again with the no-window option: emacs -nw. (Do not use the & here, as it will hide Emacs from you.) You will not be able to interact with it using the mouse, so learn those key bindings well! If the Emacs is not visible (and the command prompt does not return), Emacs may have started on a GUI display where you are also logged in on the same computer. If you are working with a command line interface with no option to start GUI application, start Emacs directly in the terminal with emacs. The & tells the terminal to open Emacs in the background and immediately return control of the terminal to you. If you are working with a graphical user interface, start Emacs by clicking its icon or by running emacs & in a terminal.
EMACS PAGE DOWN SHORTCUT INSTALL
It is also possible to install in most other environments. Buttons and menus in the graphical version help when you are lost, but learn the key bindings (keyboard shortcuts) to find the true source of power.Įmacs is installed in the CS 251 computing environments. The first differences you will notice are the keyboard shortcuts and the interface. Emacs is different than other text editors in many ways.