Emacs executes commands in shell edit buffers

Source: Internet
Author: User

-Execute one command at a time

M!

-Executes a shell command and puts the result in the current edit buffer

C-u M!

=============================

The following formally enters the shell edit buffer

=============================

-Start Shell Edit buffer

M x Shell

-Start a shell edit buffer again

M x rename-uniquely

-Terminate a job

C-c c-c

-Scrolling History command

M p \ m n

-Clears the output of a command

C-c C-o

-Causes the original line of the command output to appear at the top of the screen

C-c C-r

-View the last few lines of the command output

C-c C-E

-Rollback OUTPUT Group

Output group: Consists of a command and the contents of the output it executes.

C-c c-p \ c-c c-n

===============================

File and directory Operations

===============================

dired-> Directory Editing mode

-Enter directory mode

Emacs Directory Name

C-x c-f Directory Name

C-x D

Select Open Directory from the File menu

-Sort directory contents by name or date in dired mode

Press S repeatedly

-View and edit files

V read-Only view file, s used for recursive query, = give the current cursor row, c-c or Q exit

F to edit the file, C-x B can return to dired mode

-File Delete, copy, rename

Move to the file name you want to delete press D to increase the tag to be deleted, press U to remove the tag to be deleted, and x to delete all files to be deleted.

#会给所有emacs自动保存文件加上待删除标记, remove c-u#,~ will give all Emacs backup files with the tag to be deleted, remove C-u ~

D will delete the file immediately

C Copying files

R Renaming files

-Compression and decompression of files

Z Compress or Compress files

-Compare files

=

-Run the shell command on the file

On the file! Enter the shell command

G re-read the directory from disk

-Working with filegroups

m to file plus pending Mark M del Remove pending tag

%m using regular expressions to select files to do the pending action tag

+ Create a new directory

-Other Directory operations

E Edit File

G Change file group permissions

K Remove the line from the screen where the cursor is located

o Find the file in another window, move the cursor to the new window

C-o in another window to find the file, the cursor does not move to a new window

P Print File

Q Find-replace operations on files marked for operation

. Add a tag to the numbered backup file for deletion

* Add * Mark to executable file, remove C-u *

/mark the directory Home *, remove c-u/







This article from "Test" blog, declined reprint!

Emacs executes commands in shell edit buffers

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.