用emacs tramp在windows上开发*nix下的项目
来源:互联网 发布:剑侠情缘网络版3 mac 编辑:程序博客网 时间:2024/05/23 01:57
我在一个无GUI的Debian终端服务器开发项目。不好意思,这个服务器是……用VirtualBox虚拟的。主机Host是Windows。Windows也是没有办法才用的,否则弄一个虚拟服务器干什么?我的笔记本早就是Ubuntu了。不过现在捡起来Debian,发现没有GUI当服务器真的很不错。
个人非常喜欢emacs,所以在Windows下也装上了。Google code里可以找到编译好的最新emacs23。
http://code.google.com/p/emacs-for-windows
为了回避麻烦的NAT设置,我就用Bridge方式用Debian。这样虚拟机就如同局域网的一个机器。装上SSH就可以在Windows的PuTTY来访问终端,同时用FileZilla来上传或下载文件(配置成SFTP using SSH2)。当然最好装smbfs,可以更方便点。(Putty和FileZilla都是经典啊)
我没有另外安装cygwin和mingw等,因为他们增加了事情的复杂度。如果一定需要到Linux平台我直接ssh上去就行了。用windows的emacs来访问也很方便。
修改 ~/.emacs (我不管~在Windows下是哪个目录)
;tramp for windows
(require 'tramp)
(setq tramp-default-method "plink")
plink就是PuTTY下的一个程序:plink.exe。我把它拷贝到emacs的bin目录,并且添加到系统Path变量中去。注意:plink会使用默认的putty设置,所以在使用前务必去掉在注册表中的default设置,否则可能出现不能连接的问题。
打开emacs(我不知道为何加了tramp后启动速度就慢了很多)用一般的打开文件方法就可以了:
C-x C-f /username@remote_ip:/home/username
按照提示输入密码就打开了。甚至dired的操作也可以。
- 用emacs tramp在windows上开发*nix下的项目
- Tramp Emacs & plink under windows
- windows下 Emacs+tramp+plink登录远程主机及编辑文件
- 资料: 在windows下使用的emacs
- emacs在windows下的配置
- emacs在windows下的使用
- 在 windows 下的快速搭建 emacs
- emacs prelude在windows下的配置
- 设置Windows下的EMACS开发环境
- 在windows下用mingw编译emacs
- 在Windows下使用Emacs
- 在Windows下使用Emacs
- 在windows 下安装emacs
- Windows上Emacs的安装
- emacs 在windows下使用的键盘布局
- 从windows到*nix(六) 程序开发
- 在Windows上用cygwin成功编译quick-cocos2d-x项目下的CoinFlip例子
- 简化windows下的emacs
- Head First C# 中文版 第九章 读写文件 page428
- const用法详解
- 网页上多张图片转换代码(JS)
- work hand in glove 密切合作
- 不准继续污辱中国人
- 用emacs tramp在windows上开发*nix下的项目
- JAVA外观大全
- 在使用import语句时
- xerces 写xml
- 也谈“SAAS”
- 一本好书
- 论文的发表事宜
- svn 换用户
- JDK JRE区别