Follow 1610f9d21871f0 to more Emacs tips

Raycast artifact in the fifth program. I knew that it can execute scripts directly, but I have never tried it. I recently discovered that it provides a script-commands warehouse, which organizes some commonly used scripts, such as Emptying the trash, refreshing DNS, etc., are more practical.

But there are a lot of scripts in this warehouse, and all I need is a small part of them, so I need a way to easily copy files between two directories (called src and dst).

Before then I have been in Dired mark in the relevant documents, and then find dst in the minibuffer, if src and dst farther than from the whole process can be very tedious, inefficient, try a bit today, Google this problem , found a A good way, the process is as follows:

  1. Open two Dired windows, corresponding to the src directory and the dst directory respectively
  2. After the mark file in src, when you press C to copy, the default directory prompted is dst
  3. Just press Enter to copy the file

Set (setq dired-dwim-target t) to use the above functions. Emacs is amazing!

img


刘家财
1.7k 声望97 粉丝

Lisp、编译原理爱好者


引用和评论

0 条评论