摘要: Emacs配置文件1:;;请在~/下创建.saves和.semanticdb文件夹 ;;将此文件拷贝至~/下并更名为.emacs即可 ;--------------设置有用的个人信息--------------- (setq user-full-name "aron") (setq user-mail-address "shuxiao9058@qq.com") ;-------------------设置基本信息---------------- ;;设置背景颜色 (set-background-color "black") ;;设置字 阅读全文
posted @ 2013-05-24 23:39 Yuan Ping 阅读(1498) 评论(0) 推荐(0) 编辑
摘要: 网上主要的显示行号LISP插件,有setnu.el、wb-line-number、linum.el等几个。比较了一下选择了linum1、下载linum.el:http://stud4.tuwien.ac.at/~e0225855/linum/linum.html一共两个版本(我用的是emacs-nox 22.3-2),就下的linum.el for Emacs >=22linum.el for Emacs >=22, orlinum.el for older Emacs versions and XEmacs2、设置.emacs文件:(add-to-list 'load-p 阅读全文
posted @ 2013-05-24 23:08 Yuan Ping 阅读(530) 评论(0) 推荐(0) 编辑
摘要: 1:先安装emacs我用的是 2.2的 用 suod apt-get install emacs即可。2:下载http://download.gna.org/color-theme/color-theme-6.6.0.tar.gz。然后自己解压3:把color-theme-6.6.0.tar.gz解压后的color-theme.el和 theme文件夹复制到 ~/.emacs.d文件夹内(如果~/.emacs.d文件夹不存在请先建立)。4:打开~/.emacs文件,写入 :(add-to-list `load-path "~/.emacs.d/")(require `col 阅读全文
posted @ 2013-05-24 22:45 Yuan Ping 阅读(249) 评论(0) 推荐(0) 编辑
摘要: 前段时间把Debian升级到了sid,系统时间总是快8个小时。debian这边设好了,到了windows就会慢8个小时。网上说只要修改/etc/default/rcS中的UTC=no就行了,但还是没反映,没办法,一步步找问题。发现在/etc/rcS.d/S05hwclock.sh有这样一段话: # 2012-02-16 Roger Leigh # – Use the UTC/LOCAL setting in /etc/adjtime rather than # the UTC setting in /etc/default/rcS. Additionally # sou... 阅读全文
posted @ 2013-05-21 00:58 Yuan Ping 阅读(877) 评论(0) 推荐(0) 编辑
摘要: 安装包dpkg -i package.deb sudo apt-get install package 安装包sudo apt-get install package - - reinstall 重新安装包sudo apt-get -f install 修复安装"-f = ——fix-missing"显示该包的版本、安装信息等dpkg -l package dpkg -s package (详细)apt-cache show package 获取包的相关信息,如说明、大小、版本等搜索特定的包apt-cache search package列出当前所有已安装的包dpkg -l 阅读全文
posted @ 2013-05-18 23:23 Yuan Ping 阅读(259) 评论(0) 推荐(0) 编辑
摘要: http://blog.sina.com.cn/s/blog_4c451e0e0100gixe.htmlhttp://www.stack.nl/~dimitri/doxygen 阅读全文
posted @ 2013-05-18 22:30 Yuan Ping 阅读(196) 评论(0) 推荐(0) 编辑
摘要: 设置系统自动登陆之后可以不需要每次都写用户和密码。步骤如下:System Settings -> User Accounts -> Automatic Login(ON) 阅读全文
posted @ 2013-05-18 12:21 Yuan Ping 阅读(393) 评论(0) 推荐(0) 编辑
摘要: 老是提示有点烦,自用电脑感觉不需要考虑那么多安全问题,所以决定去掉这个提示。以12.04LTS英文版演示1、打开“Dash Home”,输入“seahorse”或是“passwords and keys”2、右击“passwords:login”选中“charge password”,旧密码就填现在的登录密码,新密码和确认密码均不填,并选择使用不安全的存储即可,注销后看看是不是还需要提示?(不过貌似这样不安全,别人可能访问到你的文件,不要照着有的教程里面说的将default和login都删除,那样会带来一些问题,如chrome打开总是提示“your profile could not be o 阅读全文
posted @ 2013-05-18 11:48 Yuan Ping 阅读(1405) 评论(0) 推荐(0) 编辑
摘要: 在路径/etc/polkit-1/localauthority/50-local.d下新建名为50-admin.pkla文件,文件内容为:[disable suspend]Identity=unix-user:*Action=org.freedesktop.upower.suspendResultAny=noResultInactive=noResultActive=no [disable hibernate]Identity=unix-user:*Action=org.freedesktop.upower.hibernateResultAny=noResultInactive=noRe... 阅读全文
posted @ 2013-05-18 00:07 Yuan Ping 阅读(231) 评论(0) 推荐(0) 编辑
摘要: 一、安装1、安装gcc/g++/gdb/make 等基本编程工具$sudo apt-get install build-essential2、安装 libgtk2.0-dev libglib2.0-dev 等开发相关的库文件$sudo apt-get install gnome-core-devel 3、用于在编译GTK程序时自动找出头文件及库文件位置 $sudo apt-get install pkg-config4、安装 devhelp GTK文档查看程序$sudo apt-get install devhelp5、安装 gtk/glib 的API参考手册及其它帮助文档$sudo apt. 阅读全文
posted @ 2013-04-27 00:44 Yuan Ping 阅读(376) 评论(0) 推荐(0) 编辑