看看这温度!还是人能过的吗?不如杀了偶算了!!!!!
玩玩Emacs~~~
2006年06月18日
今天运气好,直接找到了一个Emacs22-CVS的deb包,然后apt了个mule-ucs搞定中文,感觉还可以!
顺便贴一下配置文件:
;;输入法
;; get around the Ctrl+SPACE key binding for inputing method
(global-set-key "\C-cm" ‘set-mark-command)
;; 指针颜色设置为白色
(set-cursor-color "orange1")
;; 鼠标颜色设置为白色
(set-mouse-color "orange1")
;; 设置背景颜色和字体颜色
(set-foreground-color "white")
(set-background-color "gray15")
;; 设置另外一些颜色:语法高亮显示的背景和主题,区域选择的背景和主题,二次选择的背景和选择
(set-face-foreground ‘highlight "white")
(set-face-background ‘highlight "blue")
(set-face-foreground ‘region "cyan")
(set-face-background ‘region "blue")
(set-face-foreground ‘secondary-selection "skyblue")
(set-face-background ‘secondary-selection "darkblue")
;;允许自动打开图片,如wiki里面
(auto-image-file-mode)
;;当指针到一个括号时,自动显示所匹配的另一个括号
(show-paren-mode 1)
;;是用滚轴鼠标
(mouse-wheel-mode t)
;;滚动页面时比较舒服,不要整页的滚动
(setq scroll-step 1
scroll-margin 3
scroll-conservatively 10000)
;;日历基本配置
;;设置我所在地方的经纬度,calendar里有个功能是日月食的预测,和你的经纬度相联系的。
(setq calendar-latitude +32.0)
(setq calendar-longitude +118.7)
;; 显示列号
(setq column-number-mode t)
;; 显示时间
;; (display-time)
;;时间显示设置
;;启用时间显示设置,在minibuffer上面的那个杠上(忘了叫什么来着)
(display-time-mode 1)
;;时间使用24小时制
(setq display-time-24hr-format t)
;;时间显示包括日期和具体时间
;;(setq display-time-day-and-date t)
;;时间栏旁边启用邮件设置
(setq display-time-use-mail-icon t)
;;时间的变化频率,单位多少来着?
(setq display-time-interval 10)
;; 高亮显示要拷贝的区域
(transient-mark-mode t)
;; 语法加亮
(global-font-lock-mode t)
(setq scroll-margin 3
scroll-conservatively 10000)
;;显示图片
(auto-image-file-mode t)
(defun linux-cpp-mode ()
"my cpp mode define"
(interactive)
(c-set-style "K&R")
(setq c-basic-offset 8)
;(c-toggle-auto-hungry-state)
(define-key c++-mode-map [return] ‘newline-and-indent)
)
(defun linux-c-mode ()
"my c mode define"
(interactive)
;;(c++-mode)
(c-set-style "K&R")
(setq c-basic-offset 8)
;(c-toggle-auto-hungry-state)
(define-key c-mode-map [return] ‘newline-and-indent)
)
(add-hook ‘c++-mode-hook ‘linux-cpp-mode)
(add-hook ‘c-mode-hook ‘linux-c-mode)
搞定偶的iFP-395T
2006年06月18日
前几天用wine模拟了一个imm,可惜不能打开USB口!总不能为了一个mp3player专门去用windows吧?!
今天在sourceforge里瞎转,竟然发现了一个专门针对iriver-ifp系列固件升级的software(http://ifp-driver.sourceforge.net).赶紧apt!
哈~支持的很好,而且能将偶395里的music上传到PC里!这个是imm绝对静止的.
总结一下安装方法吧!省得以后忘记……
首先apt-get三个必要的包:ifp-line-libifp,libifp4,python2.4-pyifp!
前两个等直接apt,python的那个就直接去sourceforge找吧!
装好后在“终端”里运行:sudo ifp firmversion显示版本。
偶的是:Detected: model IFP-395T, firmware 2.22, battery =[####], delta 1.8.5.21 Firmware version (really not sure!): 2.22
如果想升级固件的话直接命令:sudo ifp firmupdate IFP-3XXT.HEX
然后安装iFP-Gnome,一个基于Gnome的iFP系列的音乐管理器,功能和1.06版的imm一样,但可以上传音乐文件,这点比较爽!
“终端”下用:sudo ifp ls以字符方式显示目录;
sudo ifp-gnome启动图形界面的管理程序!
唯一的遗憾就是只能用管理员权限运行~~~
好了!现在谁能给偶一个用Windows的理由?!嗯……