Value of the dired-directory

后端 未结 1 438
忘了有多久
忘了有多久 2021-01-19 14:56

I wanted to run a script in the location of the current buffer, or, if it is a dired buffer - to run the script on the current dired directory. The current dired directory s

相关标签:
1条回答
  • 2021-01-19 15:08

    You can use the variable default-directory.

    In this case you don't need to check if you're in the dired mode or not.

    0 讨论(0)
提交回复
热议问题