不定期にEmacsでsudoしたいということがある。
sudo emacs で別に起動してもいいのだけど、ちょっと嫌ですよね
で、@h_hiraiさんから教えてもらったのはssh+sudoという素敵なものだったので、
ここにまとめておく。すべてC-x C-fで開くものに入力する文字列
sudo(localでroot権限編集したいとき)
/sudo::/path/to/file
ssh(remoteのファイル編集)
/ssh:username@hostname:/path/to/file
ssh+sudo(remoteでroot権限編集したいとき)
/ssh:username@hostname|sudo:hostname:/path/to/file
参考: qiita.com