Emacs笔记
2016-02-25 00:00
330 查看
Emacs转移HOME配置:
(setenv "HOME" "path/to/dir")
(load "~/.emacs.d/init.el")
emacs-client用root权限修改文件:
/sudo:root@localhost:/etc/fstab
用sudo去编辑文本:
(defun sudo ()
"Use TRAMP to `sudo' the current buffer"
(interactive)
(when buffer-file-name
(find-alternate-file
(concat "/sudo:root@localhost:"
buffer-file-name))))
(setenv "HOME" "path/to/dir")
(load "~/.emacs.d/init.el")
emacs-client用root权限修改文件:
/sudo:root@localhost:/etc/fstab
用sudo去编辑文本:
(defun sudo ()
"Use TRAMP to `sudo' the current buffer"
(interactive)
(when buffer-file-name
(find-alternate-file
(concat "/sudo:root@localhost:"
buffer-file-name))))
相关文章推荐
- redis主从配置及主从切换
- emacs 通过名称切换frame(帧)
- esb产品
- 据说, 这个笑话曾排世界第一!
- Js 冒泡事件阻止
- 彻底理解javascript的回调函数(推荐)
- windows eclipse远程连接hadoop集群并提交任务运行
- Java中的Map List Set等集合类
- Linux中的In命令
- php长连接
- Centos 7 网卡bug一例
- eclipse导入的web项目不能部署到tomcat,显示为java项目
- #Linux协议栈你学得会# 之 本机地址 vs 127.0.0.1
- windows下安装cygwin及配置
- iOS开发笔记
- 使用AudioConverterFillComplexBuffer函数时返回-50 和17....
- iOS网络编程之五——请求回执类NSURLResponse属性简介
- iOS新的视频开发框架AVPlayerViewContoller与画中画技术
- Android GridView使用
- 存储过程中sql语句按变量进行判断执行相应的查询条件