Something About Emacs
In this series, I will write something about Emacs.
motion commands of c-mode
| Keystokes | Command name | Action | 
|---|---|---|
| C-M-a | beginning-of-defun | Move to the beginning of the body of the function | 
| C-M-e | end-of-defun | Move to the end of the function | 
| C-M-h | c-mark-function | Put the cursor at the beginning of the function, the mark at the end | 
| C-c C-q | c-indent-defun | Indent the entire function according to indention style | 
Eshell
| Keystrokes | Command name | Action | 
|---|---|---|
| C-c M-b | eshell-insert-buffer-name | Insert the printed buffer name at point | 
| C-c M-v | eshell-insert-envvar | Inserts an environment variable name at point | 
Eshell pseudo-devices:
- /dev/clipsends the output to the clipboard
- /dev/killsends the output to the kill ring
Eshell support both login and profile/rc shell script. Refer to variable eshell-login-script and eshell-rc-script.
MySQL
<2020-01-16 四 11:40>
| Keystrokes | Command name | Action | 
|---|---|---|
| M-x -my | sql-mysql | connect MySQL and open sql buffer | 
| C-u M-x -my | sql-mysql | start a new connection with MySQL | 
Registers
<2020-01-16 四 11:40>
| Keystrokes | Command name | Action | 
|---|---|---|
| C-x r w R | window-configuration-to-register | Save the state of the selected frame’s windows in register R | 
| C-x r j R | jump-to-register | restore a window or frame configuration | 
| C-x r f R | frameset-to-register | Save the sate of all frames, including all their windows, in register R | 
When you restore a configuration, any existing frames not included in the configuration become invisible.