Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Trampを使用して、sudoを使用してルートとしてEmacsでファイルを開く/編集する方法を知っています。シェルを開かずに sudo でも Emacs コマンドを実行する方法があるのだろうか?
何かのようなもの:
sudo Mx find-name-dired
また
Mx sudo find-name-dired
例えば。
コマンドにファイルシステム上のパスが含まれる場合、次のようにtrampを利用できますM-x find-name-dired RET /sudo::/your/path。
M-x find-name-dired RET /sudo::/your/path