摘要: 使用iimage-mode可以在buffer里面显示图片,改了一个lisp函数来实现截屏、保存文件并插入到buffer中的功能。参考了这个: http://dreamrunner.org/wiki/public_html/Emacs/org-mode.html#sec-2-3 安装起来很简单: 安装scrot,会用这个工具来截图 创建一个文件夹 ~/.emacs.img ,截屏产生的图片会保存到这里 把下面的lisp放到emacs的配置文件中(我把截屏的快捷键绑定到了C-p上面) 1 ;;; image for org-mode 2 ; 1. suspend current em... 阅读全文
posted @ 2013-04-28 22:16 王程明 阅读(650) 评论(0) 推荐(0) 编辑
摘要: 经常需要创建一个目录进入之,于是准备使用一个命令完成: 首先编写脚本 cdm.sh CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->#!/bin/bashmkdir -p $1if [ $? -eq 0 ] ; then cd $1fi ... 阅读全文
posted @ 2008-12-23 20:08 王程明 阅读(2536) 评论(1) 推荐(0) 编辑
摘要: 对于以源代码方式进行发布的软件包,我们进行安装的时候一般会执行 CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->./configuremakemake install 进行编译和安装,在卸载的时候需要执行 CodeCode highligh... 阅读全文
posted @ 2008-12-21 13:29 王程明 阅读(1031) 评论(0) 推荐(0) 编辑
摘要: 转自 http://blog.chinaunix.net/u/19742/showart_382176.html Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->#Python字符串操作'''1.复制字符串'''#strcpy(sStr1,sStr2... 阅读全文
posted @ 2008-12-17 21:11 王程明 阅读(1155) 评论(0) 推荐(0) 编辑
摘要: 阅读全文 类别:默认分类 查看评论 阅读全文
posted @ 2008-11-10 19:43 王程明 阅读(266) 评论(0) 推荐(0) 编辑
摘要: 阅读全文 类别:开发环境 查看评论 阅读全文
posted @ 2008-11-04 16:29 王程明 阅读(83) 评论(0) 推荐(0) 编辑
摘要: 阅读全文 类别:默认分类 查看评论 阅读全文
posted @ 2008-11-04 14:56 王程明 阅读(103) 评论(0) 推荐(0) 编辑
摘要: 阅读全文 类别:Latex 查看评论 阅读全文
posted @ 2008-11-03 13:29 王程明 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 阅读全文 类别:默认分类 查看评论 阅读全文
posted @ 2008-10-28 19:14 王程明 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 阅读全文 类别:c/c++ 查看评论 阅读全文
posted @ 2008-10-27 23:27 王程明 阅读(74) 评论(0) 推荐(0) 编辑