- 博客(10)
- 资源 (1)
- 收藏
- 关注
转载 设置EMACS 23 在启动时候自动最大化
在Windows XP下面,看了网上的一些帖子,自己也试了一下,发现下面的方法比较好用:直接在启动文件(.emacs 或者 site-start.el)的最下面增加一条语句:(run-with-idle-timer 1 nil 'w32-send-sys-command 61488)其中函数 (w32-send-sys-command 61488) 是向当前emacs的窗口发送最大化的
2014-10-17 13:57:26 2181
原创 Emacs 用空格代替TAB
Emacs 的TAB缩进在其他编辑器, 比如source insight 不能正确显示,导致原本排列的很整齐的代码参差不齐,有一个解决方法是用强制emacs 在输入或调用TAB键时都用空格键space填充,这样所有的编辑器都能正确辨识。or this session, force Emacs to indent with spaces, never withTABs:M-x
2014-10-17 10:12:35 4204
原创 我的.emacs 文件内容
1 (custom-set-variables 2 ;; custom-set-variables was added by Custom. 3 ;; If you edit it by hand, you could mess it up, so be careful. 4 ;; Your init file should contain only one such
2014-10-16 17:24:14 702
原创 perl判断文件是否存在
主要就是 -e 这个操作符 ( e 即是 "exist" )$fileExist = -e "C:/windows/readme.txt";if ( $fileExist ) { print "Yes"}else { print "No"}
2014-10-14 17:00:55 2426
原创 shell 判断参数是否存在
if [ -$# -lt 1 ]; then echo 没有命令行参数fiif [ x"$parm" = x ]; then echo 参数parm不存在或者为空值fiif [[ -z "$parm" ]]; then ...
2014-10-14 11:18:05 13278
原创 HelloWorld.java:3: 找不到符号
public class HelloWorld{ public static void main(string[] args) { System.out.println("Hello Java!"); }}
2014-10-10 13:52:37 3000 2
原创 Perl system(cmd) 和 `cmd` 的区别
perl 系统调用有两种方式:一种是system(cmd),另一种是`system`以前一直没注意,这两种方式的区别,还以为是一样的,今天写脚本的时候,忽然想要获取命令的返回值,然后,用了my $result = system('ls');发现,命令的结果并没有返回给$result,而是直接,打印到屏幕上了,所以,这么搞是要完蛋的,而改成my $result = `
2014-10-09 15:08:45 2223
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人