25 Window commands
Keystrokes Command name Action C-x 2 File → Split Window split-window-vertically Divide current window into two windows, one above the other. ...
Keystrokes Command name Action C-x 2 File → Split Window split-window-vertically Divide current window into two windows, one above the other. ...
Keystrokes Command name Action C-x r m Edit → Bookmarks → Set Bookmark bookmark-set Set a bookmark at the current cursor position. C-x ...
If you want to run another particular shell (for example, the zed shell) when you’re in Emacs, you can add the following command to your .emacs file: (setq shell-file-name "/bin/zsh") When Emacs...
Keystrokes Command name Action C-x d File → Open Directory dired Start Dired. A Operate → Search Files dired-do-search Do a...
If you want to use the printer named lpt1 whenever you print from Emacs, you would want to set lpr-switches to -Plpt1. To do so, add the following line to your .emacs file: (setq lpr-switches '("-...
M-x man selecting Man from the Help menu Simply type: M-x man Enter Unix-command-name Enter
To use the Java build tool ant as your default compile command, just add this line: (setq 'compile-command "ant -emacs") Compilation mode commands Keystrokes Command name ...
Displaying the Calendar M-x calendar By default, weeks start on Sunday. If you’d like them to start on Monday instead, type M-x set-variable calendar-week-start Enter 1 Enter. You enter the calen...
comment M-; M-j M-x comment-region M-x kill-comment Enter Indenting Code Basic indentation commands Keystrokes Command name Action C-M-\ ...
You can also put any file in C mode manually by typing M-x c-mode Enter. Similarly, you can use c++-mode to put a buffer into C++ mode. Motion Commands Advanced C motion commands ...