19 Word abbreviation commands
Keystrokes Command name Action M-/ dabbrev-expand Complete this word based on the nearest word that starts with this string (pressM-/ again if that’s n...
Keystrokes Command name Action M-/ dabbrev-expand Complete this word based on the nearest word that starts with this string (pressM-/ again if that’s n...
*scratch* is just what it sounds like: a temporary scratchpad where you can type. It won’t be saved unless you explicitly write it to a file using C-x C-w. +——————-+ +——————-+ | Frame 1 ...
For a more convenient solution, add these lines to your .emacs file: (setq initial-frame-alist '((top . 10) (left . 30) (width . 90) (height . 50))) (setq default-frame-alist '((width . 80) (heigh...
创建缓冲区包含文件: 使用 C-x C-f 查找文件。 Emacs 会自动创建第二个缓冲区并切换过去。 已有文件缓冲区: 如果文件已在缓冲区中,C-x C-f 只会移动到已有缓冲区。 防止多版本文件: 避免每次从磁盘读取文件,防止多个稍有不同的版本。...
Creating Horizontal Windows C-x 2 (for split-window-vertically) If you wanted to edit dickens and joyce, you would type emacs dickens joyce and Emacs would display these files in two horizontal w...
Keystrokes Command name Action C-x b Buffers → Select Named Buffer switch-to-buffer Move to the buffer specified. C-x → Buffers → Next ...
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...