我在 dock 中有一个应用程序 (Emacs),它显然是从 / (根文件夹) 启动的。我可以将其配置为从 $HOME 启动吗?例如,寻找与 Windows 中的快捷方式属性等效的属性。
答案1
在文件底部.emacs
插入:
(cd "~/")
cd is an interactive compiled Lisp function in `files.el'.
(cd DIR)
Make DIR become the current buffer's default directory.
If your environment includes a `CDPATH' variable, try each one of
that list of directories (separated by occurrences of
`path-separator') when resolving a relative directory name.
The path separator is colon in GNU and GNU-like systems.