1. Instead of starting with ./configure, use the configure options to tell the build system where you want the files to end up. For example: ./configure --prefix=/home/abhi/emacs --bindir=/home/abhi/bin will install all of emacs' support files under /home/abhi/emacs, and the emacs executables in /home/abhi/bin. If the latter is in your $PATH, which it usually is, then things should Just Work(sm). 2. After that you can make make install without worrying about the installation putting files other than in your home directory. (This is all based on your home directory being /home/abhi, of course. Edit as necessary.)
我对vim和emacs作为ide算是比较熟吧,但是要推荐一个我用起来感觉比VIM更好,比Emacs体验更好的Sublime Text 2,无论是C/C++, fortran, C#, python, makefile, matlab语言的书写,都是完美的一网打尽。 这里主要针对linux下的安装做一个说明,其实windows的要更简单,下载直接双击安装即可。 1. 首先去官网( http://www.sublimetext.com/ )下载最新的压缩包 tar -xf (sublime压缩包的文件名).tar.bz2 sudo mv (解压后的文件夹) opt/Sublime_Text_2 2. create a shotcut in the'/usr/bin' directory. vi sublime paste the folloig in it: #!/bin/sh export SUBLIME_HOME=”/opt/Sublime_Text_2” $SUBLIME_HOME/sublime_text $* Save and Close the file. Move it to '/usr/bin directory. chmod 5 55 sublime mv sublime /usr/bin/sublime This will create a system variable in the system, so We can access the Sublime text editor by calling sublime in the terminal. 3. 安装 Package control 按Ctrl+`调出console 粘贴以下代码到底部命令行并回车: import urllib2,os; pf='Package Control.sublime-package'; ipp=sublime.installed_packages_path(); os.makedirs(ipp) if not os.path.exists(ipp) else None; urllib2.install_opener(urllib2.build_opener(urllib2.ProxyHandler())); open(os.path.join(ipp,pf),'wb').write(urllib2.urlopen('http://sublime.wbond.net/'+pf.replace(' ','%20')).read()); print('Please restart Sublime Text to finish installation') 重启Sublime Text 2 如果在Perferences-package settings中看到package control这一项,则安装成功。 4. 用Package Control安装插件的方法 按下Ctrl+Shift+P调出命令面板 输入 pcip (Package Control Install Package 的首字母)调出 Install Package 选项并回车,然后在列表中选中要安装的插件。 5. 常用插件 Alignment Bracket Highlighter Side Bar Sublime CodeIntel