Emacs转移HOME配置:
(setenv “HOME” “path/to/dir”)
(load “~/.emacs.d/init.el”)
emacs-client用root权限修改文件:
/sudo:[email protected]:/etc/fstab
用sudo去编辑文本:
(defun sudo ()
“Use TRAMP to `sudo’ the current buffer”
(interactive)
(when buffer-file-name
(find-alternate-file
(concat “/sudo:[email protected]:”
buffer-file-name))))
近期评论