2013年6月11日星期二

emacs 处理python indention

问题:TabError: inconsistent use of tabs and spaces in indentation

  不要用tab,自动缩进
解决
命令行方式sed -e 's;\t; ;' < yourFile.py > yourNedFile.py
emacs
M-x untabify

如果不行,文件名另存为

2013年6月6日星期四

ldoce5 on linux

环境 linux mint 15
必备软件
apt-get install pulseaudio-esound-compat
apt-get install ia32-libs-gtk
安装命令
linux32 /media/cdrom0/linux/setup.sh
启动
cd ~/ldoce5
./run-ldoce5.sh