emacs多年使用总结


emacs Table of Contents 1 第三方扩展package 1.1 学会使用erc 1.2 代码查看功能etags 1.2.1 basic description 1.2.2 question 1.2.2.1 使用M-. 跳转后, 如果回到原光标位置 1.2.3 useful link 1.3 发送邮件和使用mailist, usenet 1.4 记账ledger 1.5 英文拼写检查ispell 1.6 支持词典功能 1.7 svn 版本控制功能psvn.el 1.8 indent action script 格式的代码 1.8.1 useful link 1.9 indent nxml/xml 格式的代码 1.9.1 basic description 1.9.2 useful link 1.10 boxquote 1.10.1 basic 1.10.2 useful link 1.11 ledger 中账户只能从默认内容里取,不能随意 1.12 安装使用bbdb 1.12.1 basic description 1.12.2 useful link 1.12.3 设置bbdb 的数据文件 1.12.4 basic description 1.12.5 疑难问题 1.13 slime 工具是做什么的 1.14 修改weblogger 的新文章的模板 1.15 在emacs 中使用svn 1.15.1 basic 1.15.2 useful link 1.16 ediff 1.16.1 比较当前两个buffer: ediff-buffers 1.16.2 useful command 1.16.3 useful link 1.17 emacs 最小化,然后最大化时,minbuffer 不见了 1.17.1 解决办法, 将(create-fontset-from-fontset-spec "-outline-courier new- normal-r-normal-normal-19-97-96-96-c-*-fontset-filebat") 改为(create-fontset- from-fontset-spec "-outline-courier new-normal-r-normal-normal-17-97-96-96- c-*-fontset-filebat") 1.18 blog to wordpress 1.18.1 quick start 1.18.2 useful link emacs file:///D:/ntemacs23/myemacs/My%20Dropbox/private_data/e... 1 of 65 2010-01-28 21:54 1.19 LaTeX 1.19.1 useful link 1.19.2 quick start 1.19.2.1 export tex to pdf 1.19.2.2 export tex to html 1.20 gnus 1.20.1 useful link 1.20.1.1 推荐新闻服务器 1.20.1.2 推荐新闻组 1.20.2 basic description 1.20.2.1 Group buffer mode 1.21 dictionary 的使用 1.21.1 best practice 1.21.2 启动服务端dictd: dictd -c /etc/dictd.conf -t hello 1.21.3 useful link 1.22 calendar 中显示中文日历 1.23 设置mark 时, 高亮显示出来 1.23.1 basic bookmarks 1.23.1.1 useful link 1.23.2 bm 1.23.3 使用bm 来高亮显示mark, 并persistent 这些mark[2/2] 1.23.3.1 配置颜色 1.23.3.2 关闭emacs 时,保持当前mark 2 diary-mode in emacs 2.1 > runs the command calendar-scroll-left 2.2 显示所有节日:在calendar 中输入x 2.3 列出所有holiday:M-x list-holidays 2.3.1 basic description 2.3.2 useful link 2.4 设置diary 文件的存放位置 2.5 添加自己holiday 2.6 提示时,采用要求输入"是/否"才退出 2.7 useful link 3 elisp[3/4] 3.1 如何高亮显示某个区域 3.2 定义函数的返回值 3.3 let*:Bind variables according to varlist then eval body. 3.4 输入使用msg 3.5 useful link 4 search/replace 4.1 搜索tab 键:C-s C-i 4.2 正则表达式:去掉行尾的空格 4.3 search content of current word: C-w 4.4 批量删除一个文件夹中, 所有文件的tailing space: M-x find-name-dired + t + Q 4.5 search content of current line: C-y 4.6 search and replace in files 4.7 search recursively: M-x rgrep 4.8 通过dired 的模式,先选中一组文件,再M-x dired-do-query-replace-regexp 4.9 useful link 5 内置package 的使用经验 5.1 emacs 中是按什么键切换到“全拼”输入法 emacs file:///D:/ntemacs23/myemacs/My%20Dropbox/private_data/e... 2 of 65 2010-01-28 21:54 5.2 输入特殊字符 5.2.1 useful link 5.3 模糊查找一个command 的帮助:M-x apropos 5.4 find out keyborad shortcuts for current buffer:M-x describe-bindings 5.5 Master the buffer and window commands 5.5.1 basic description 5.5.2 useful link 5.6 统计某个单词/句子出现的次数 5.6.1 useful link 5.7 如何加下划线 5.7.1 basic description 5.8 [#A] minbuffer 的提示没有关闭 5.9 删除段尾空行:C-x C-o(delete-blank-lines) 5.10 查看emacs 当前load 了哪些lisp 5.11 uniquify: make buffer names unique 5.11.1 basic description 5.11.2 useful link 5.12 删除尾部的空格:M-x delete-trailing-whitespace 5.13 dired mode 中设置为只打开一个buffer 5.13.1 useful link 5.14 eshell 中定义alias 5.14.1 basic description 5.14.2 useful link 5.15 将选中区域整体左移或右移 5.15.1 basic description 5.15.2 useful link 5.16 高亮显示尾部空格 5.17 五笔输入法挡住了状态栏 5.18 当按tab 时,输入spaces, 而不是tabs: 将变量indent-tabs-mode 设为nil 5.19 变量preloaded-file-list: 内置加载了哪些package 5.20 unique lines 5.20.1 code snippet 5.20.2 useful link 5.21 emacs 中fold python, perl, shell 的code 5.21.1 使用hs-minor-mode 模式 5.21.2 使用outline-minor-mode 模式 5.21.3 useful link 5.22 sort-lines 的使用 5.23 删除一个词,但不是复制它 5.23.1 useful link 5.24 [#A] diary 与calendar 的使用 5.24.1 将holiday 的提醒放在diary 中 5.24.1.1 添加农历 5.24.1.2 basic description 5.24.1.3 useful link 5.24.2 calendar 中跳到下一个月或上一个月: M-{ 5.24.3 在calendar 中,将星期一列为一周的第一天: calendar-week-start-day 5.24.4 显示所有节日:在calendar 中输入x 5.24.5 列出所有holiday:M-x list-holidays 5.24.5.1 basic description 5.24.5.2 useful link emacs file:///D:/ntemacs23/myemacs/My%20Dropbox/private_data/e... 3 of 65 2010-01-28 21:54 5.24.6 设置diary 文件的存放位置 5.24.7 添加自己holiday 5.24.8 提示时,采用要求输入"是/否"才退出 5.24.9 useful link 5.25 使用flush-line 来删除空白行:M-x flush-lines ^$ 5.25.1 useful link 5.26 修改字体:将字体动态变大或变小 5.26.1 basic description 5.26.2 useful link 5.27 grep-find:exclude the directory of .svn 5.27.1 add the following line to ur emacs configuration file 5.27.2 filter when finding 5.27.3 filter after finding 5.28 python 的帮助有时候有,有时候又没有了 5.29 find-name-dired: exclude the direcotry of .svn 5.29.1 add the following line to ur emacs configuration file 5.30 TabBarMode 5.30.1 basic description 5.30.2 tab 的style 不好看 5.30.3 title 中显示不对 5.30.4 useful link 5.31 ispell 的使用 5.31.1 查看ispell 的数据库默认位置:~/.ispell english 5.31.2 使用flyspell-mode 模式 5.31.3 useful link 5.32 矩阵rectangle 操作 5.32.1 useful command 5.32.2 useful link 5.32.3 矩形操作:表格拷贝一列 5.32.3.1 basic description 5.32.3.2 如何将region-rectangle 中的内容复制到kill ring 中, 来方便的拷 贝到excel 等外部程序中 5.32.3.3 useful link 5.33 Artist mode 5.33.1 useful link 5.34 对.eshell/alias 的存放位置进行customizew 5.35 查出日出日落时间 5.36 patch a file with a diff: ediff-patch-buffer 5.36.1 useful link 5.37 flyspell-mode 中,添加word 到词库中 5.37.1 useful link 5.38 在选中区域进行occur 操作 5.39 print from emacs 5.39.1 basic description 5.39.2 useful link 5.40 使用cua-mode 5.40.1 useful link 6 basic feature 基本功能 6.1 移动光标: 6.1.1 保存光标位置 6.2 删除: emacs file:///D:/ntemacs23/myemacs/My%20Dropbox/private_data/e... 4 of 65 2010-01-28 21:54 6.3 搜索: 6.4 输入: 6.5 交换: 6.6 注释: 6.7 选择: 6.8 模式: 6.9 宏操作: 6.10 其它: 6.11 帮助: 6.12 游戏 6.13 十六进制查看和编辑文件hexl-mode 6.14 occur:show all lines in the current buffer containing a match for regexp 6.15 不保存备份文件 6.15.1 useful link 6.16 头文件和CPP 文件切换 6.17 看图片thumbs – view picture 6.17.1 unable to open jpg file: Invalid image specification 6.17.1.1 useful link 6.17.2 不支持中文的文件和目录 6.17.3 闪屏 6.17.4 分辨率 6.17.5 自定义设置 6.17.6 bug 6.17.6.1 resize 完第一张图片后, 再resize 第二张时,就返回到之前了 6.17.6.2 图片闪烁 6.17.6.3 不支持中文的目录和文件名 6.17.6.4 只能显示jpg 文件 6.17.7 resize 图片大小 6.18 C-u 如何重复一组击键 6.19 在fundanment 模式下交换上下行 6.20 calendar 日历 6.20.1 shortcut key 6.21 使用只读方式打开大多数文件 6.21.1 emacs 打开文件时,运行相应的hook 函数 6.21.2 解决方案 6.22 delete-other-windows 是做啥的 6.23 emacs 按内容搜索grep-find 6.24 使用cygwin 的shell 而不是emacs shell 6.24.1 useful link 6.25 message 6.26 计算器功能calc 6.27 dired 文件系统操作 6.28 useful link 6.28.1 windows 平台下安装程序 6.28.2 tutorial 6.28.3 配置样式 6.28.4 eshell 6.28.5 org-mode 6.28.6 general 6.29 use checkbox to split tasks 6.29.1 test [2/3] emacs file:///D:/ntemacs23/myemacs/My%20Dropbox/private_data/e... 5 of 65 2010-01-28 21:54 6.29.2 test [66%] 6.29.3 useful link 6.30 move to next heading same level: C-c C-f 6.31 keystrokes: navigate other window 6.32 keystrokes: Structural navigation 6.33 delete a line without copy 6.33.1 delete-line 6.33.2 useful link 6.34 查找tab 键 6.35 使用tab 键,设置为4个空格 6.36 highlight lines that are too long 6.36.1 useful link 6.37 count-matches: Print and return number of matches for regexp following point. 6.38 windows: balance-windows 6.39 emacs23, scale font: C-x C-+; C-x C-- 6.39.1 useful link 6.40 highlight all occurences of a word: M-x highlight-regexp 6.41 C-x C-o: delete-blank-lines 6.42 highlight change 6.42.1 useful link 6.43 Natural Language: downcase-word, upcase-word, capitalize-word 6.44 byte-compile-file: CompiledFile 6.45 insert utc time 6.46 narrow region:C-x n n /C-x n w 6.46.1 useful link 6.47 zap-to-char: kills from the current point to a character 6.47.1 useful link 6.48 limited replace 6.49 see emacs version: M-x version 6.50 check whether current emacs is under native windows or cygwin: variable of system-type 6.51 emacs-x11 Maximum frame 6.51.1 useful link 6.52 Don't show scroll bar in the left: (scroll-bar-mode nil) 6.53 wrap for long line 6.53.1 useful link 6.54 get file name for current buffer 6.55 Don't truncate lines in w3m mode 7 org-mode in emacs 7.1 basic description 7.2 org-mode tips 7.3 总结 7.3.1 为了在org-mode 中提高查找命中率, 注意利用大小写的不同 7.3.2 编写条目时,注意标题结构。防止二义性 7.3.3 注意内容的前后排序顺序,提高按内容搜索的准确度 7.3.4 todo 和done 词条之间是总结或未标注的内容。一旦标为DONE 的记录 就将不经常被查看,只作为知识库 7.4 table 7.4.1 table 的函数不对 7.5 设置org mode 的内嵌css 样式 7.5.1 basic description emacs file:///D:/ntemacs23/myemacs/My%20Dropbox/private_data/e... 6 of 65 2010-01-28 21:54 7.5.2 useful link 7.6 如何显示被delegate 或cancel 的工作 7.7 在org-mode 中将某个entry 及其子记录向下降一级,或向上升一级 7.8 设置Entry 的优先级 7.9 快捷键 7.9.1 Moving subtrees 7.9.2 others 7.10 如何回顾上周做过什么 7.11 输入当前时间,不仅有日期,还有HH-MM 7.12 标记出done 事件和abort 事件 7.13 设置org-mode 中tag 对齐的列号 7.14 定制输入useful link 等的宏 7.15 在org-mode 下,定义插入spliter 的快捷键 7.16 如何对一块数据按tab 键 7.17 clock 7.18 useful link 7.19 导出第三级某个结点时, html 没有目录信息:org-export-headline-levels 的默认 值为3, 太小 7.20 org-mode 中tag 对齐 7.21 [#A] org mode 导出的html 没有换行 7.21.1 useful link 7.22 org mode export table with css 7.22.1 useful link 7.23 将org-mode 中的table 不改变layout 的前提下,复制到email 中 7.24 org-mode 输入的table 带表头 7.25 org-mode 中字体加粗,加下划线 8 emacs-x11 8.1 change current file's ACL to allow editing 8.1.1 useful link 8.2 emacs-x11 设置ACL 8.2.1 basic description 8.2.2 sample of /etc/passwd 8.2.3 sample of /etc/group 8.2.4 useful link 9 canceled 9.1 将tab 换成四个空格键 9.2 [#A] 使用erc 9.2.1 useful link 9.2.2 make client process failed 9.2.3 使用Bersirc 即windows 的irc client 9.2.4 如何注册irc 用户 9.3 ses:simple emacs spreadsheet 9.3.1 useful link 9.4 对todo.org 文件进行有效的backup 和diff 9.5 使用emerge 9.6 org-mode 事件记录一旦移动archive 后,如何查看 9.7 po 模式翻译有什么好处 9.8 用bibtex 管理文献 9.9 使用emacs 作为ftp 的客户端 9.9.1 useful link 9.10 [#A] org mode 生成html 中–和-的区别很不明显 emacs file:///D:/ntemacs23/myemacs/My%20Dropbox/private_data/e... 7 of 65 2010-01-28 21:54 9.11 [#A] 去掉emacs 自动删除空白的功能,避免svn 显示大量没有意义的diff 9.12 DictEm :a Dictionary client 9.12.1 useful link 9.13 将org-mode 的内容导出成pdf 9.14 bury-buffer 是做什么的 9.15 规划时间和deadline 有啥意义 9.16 org mode 中按C- C-c 输入tag 时, 有些地方没有对齐 9.17 thinks 9.17.1 basic 9.17.2 useful link 9.18 Newsticker 9.18.1 basic 9.18.2 useful link 9.19 使用emacs 的emms 听音乐 9.19.1 basic 9.19.2 useful link 9.20 写wiki 有啥好处 9.21 使用Ebrowse 查看C++ 代码 9.22 配置emacs 使其可以像sourceinsight 那样查看代码 9.23 org-mode 存档数据如何hide 起来,避免影响打开的性能 9.24 使用emacs 上ssh, 即putty 功能 9.24.1 useful link 9.25 @ 没有办法开始region 的选中 9.26 打开samba 的文件时,emacs 会crash 9.27 在org mode 按F11 会导致当前mode hang 住 9.28 防止自动换行 9.29 自动更新时间 9.29.1 简介 9.30 查找支持rhtml 的mode 9.31 设置eshell 的快捷键 9.32 eshell 中自己写的python 脚本不能运行:Permission denied 9.32.1 useful link 9.33 删除行尾空格:delete-trailing-whitespace 9.34 tabbar-mode 启动后,flyspell-mode 的提示窗口显示不出来 9.35 设置org-mode 的导出目录 9.36 加快emacs 启动速度 9.37 emacs screencasts 9.38 使用session 工具 9.38.1 useful link 9.39 使用ESS – Emacs Speaks Statistics 9.40 [#A] emacs 中txt 的回车,在notepad 没有显示出来 9.41 Show something in the top 9.42 show diary notification in Chinese 9.43 [emacs-x11] svn-status-commit doesn't work, with no error 9.43.1 useful link 9.44 svn-status-update 错误:svn failed This client is too old to work with working copy '.' 9.45 [emacs-x11] w3m redirect google to google.jp 9.46 [emacs-x11] set fonts 9.46.1 useful link 9.47 Input character of s automatically emacs file:///D:/ntemacs23/myemacs/My%20Dropbox/private_data/e... 8 of 65 2010-01-28 21:54 9.48 安装使用w3m 9.48.1 basic description 9.48.2 how to open new buffer, without leaving current buffer 9.48.3 how to close one w3m buffer, then go to another w3m buffer 9.48.4 how to the title of current page 9.48.5 how to show height percentage in current page 9.48.6 Why browse the Web in Emacs 9.48.6.1 Browsing is faster and less distracting 9.48.6.2 You can integrate it into your work 9.48.6.3 You can customize everything 9.48.6.4 You're safe from browser exploits 9.48.6.5 You need less memory 9.48.6.6 useful link 9.48.7 how to switch buffer 9.48.8 install 9.48.8.1 Imlib2 9.48.8.2 compface/uncompface 9.48.8.3 gdkpixbuf 9.48.9 useful link 1 第三方扩展第三方扩展第三方扩展第三方扩展package HARD EMACS 1.1 DONE 学会使用学会使用学会使用学会使用erc ;; erc (add-to-list 'load-path "/usr/share/emacs/site-lisp/erc") (autoload 'erc-select "erc" "Connect to an IRC server" t) (setq erc-server "irc.freenode.net" erc-port "ircd" erc-user-full-name "full name" erc-nick "user" erc-prompt-for-password nil erc-input-line-position -2 erc-current-nick-highlight-type 'all erc-track-exclude-types '("JOIN" "NICK" "PART" "QUIT") erc-track-exclude-server-buffer t erc-max-buffer-size 30000 erc-truncate-buffer-on-save t) ;; make erc buffer truncation happen automatically (defvar erc-insert-post-hook) (add-hook 'erc-insert-post-hook 'erc-truncate-buffer) 1.2 代码查看功能代码查看功能代码查看功能代码查看功能etags 1.2.1 basic description etags -I `find -iname "*.cpp"` `find -iname "*.h"` M-x visit-tags-table M-x tags-reset-tags-tables M-. 查找一个tag ,比如函数定义类型定义等。 emacs file:///D:/ntemacs23/myemacs/My%20Dropbox/private_data/e... 9 of 65 2010-01-28 21:54 C-u M-. 查找下一个tag 的位置 M-* 回到上一次运行M-. 前的光标位置。 M-TAB 自动补齐函数名 1.2.2 question 1.2.2.1 DONE 使用使用使用使用M-. 跳转后跳转后跳转后跳转后, 如果回到原光标位置如果回到原光标位置如果回到原光标位置如果回到原光标位置 M-x pop-global-mark 1.2.3 useful link http://teren.itpub.net/post/15914/189251 Emacs 中使用etags http://www.emacswiki.org/emacs/TagsFile TagsFile 1.3 发送邮件和使用发送邮件和使用发送邮件和使用发送邮件和使用mailist, usenet 1.4 记账记账记账记账ledger 1.5 英文拼写检查英文拼写检查英文拼写检查英文拼写检查ispell 1.6 支持词典功能支持词典功能支持词典功能支持词典功能 1.7 svn 版本控制功能版本控制功能版本控制功能版本控制功能psvn.el 1.8 DONE indent action script 格式的代码格式的代码格式的代码格式的代码 1.8.1 useful link http://nisheet.wordpress.com/2007/03/05/actionscript-mode-for-emacs/ actionscript-mode for emacs!!! 1.9 DONE indent nxml/xml 格式的代码格式的代码格式的代码格式的代码 1.9.1 basic description 默认的sgxml-mode 下在选定行按tab nXML mode tidy 1.9.2 useful link http://stackoverflow.com/questions/12492/pretty-printing-xml-files-on-emacs Pretty printing XML files on Emacs http://wttools.sourceforge.net/emacs-stuff/emacsandxml.html Editing XML files emacs file:///D:/ntemacs23/myemacs/My%20Dropbox/private_data/e... 10 of 65 2010-01-28 21:54 1.10 DONE boxquote 1.10.1 basic 在文本中添加一些短线组成一个box boxquote-unbox: 解箱 boxquote-region: 将一个区域前部加上box boxquote-title: 设置box 的title boxquote-insert-file: 将另外的文件加进来,并对于文件加上box 1.10.2 useful link http://qingfengxiyu.spaces.live.com/blog/cns!E5F7A3AEF9B09ED!198.entry http://pengyou.rijiben.org/node/2430 emacs-goodies 中的boxquote http://www.davep.org/emacs/ www.davep.org 1.11 DONE ledger 中账户只能从默认内容里取中账户只能从默认内容里取中账户只能从默认内容里取中账户只能从默认内容里取,不能随意不能随意不能随意不能随意 账户处使用tab 键 1.12 DONE 安装使用安装使用安装使用安装使用bbdb 1.12.1 basic description ~/.bbdb 添加记录, bbdb-create 或者在.bbdb 文件中输入c 修改:e 删除:d 添加字段:C-o, 内置字段有Name, Phone, Address 等 添加手机使用mobile 字段,而不是phone 字段, 添加邮箱使用net 字段 1.12.2 useful link http://www.emacswiki.org/cgi-bin/wiki/CategoryBbdb category Bbdb 1.12.3 DONE 设置设置设置设置bbdb 的数据文件的数据文件的数据文件的数据文件 解决方法,设置变量bbdb-file http://bbdb.sourceforge.net/bbdb.html#SEC28 The BBDB 1.12.4 basic description (require 'bbdb) (bbdb-initialize 'gnus 'message 'w3 'vm) emacs file:///D:/ntemacs23/myemacs/My%20Dropbox/private_data/e... 11 of 65 2010-01-28 21:54 (add-hook 'gnus-startup-hook 'bbdb-insinuate-gnus) (bbdb-insinuate-w3) 1.12.5 疑难问题疑难问题疑难问题疑难问题 设置的auto-insert 模式,修改了.bbdb 文件,导致bbdb 启动失败 1.13 DONE slime 工具是做什么的工具是做什么的工具是做什么的工具是做什么的 用来帮助elisp 开发的 http://common-lisp.net/project/slime/ SLIME: The Superior Lisp Interaction Mode for Emacs 1.14 DONE 修改修改修改修改weblogger 的新文章的模板的新文章的模板的新文章的模板的新文章的模板 1.15 DONE 在在在在emacs 中使用中使用中使用中使用svn 2008-10-20 18:57 1.15.1 basic 加载psvn.el 即可使用了 C-x v v:Do the next logical version control operation on the current file ,可提升当前文件 M-x svn-status , 选择目录后进行*svn-status* 模式。该模式下,c为commit, a 为add, U 为 update 1.15.2 useful link http://my.donews.com/wangbin1979/2006/11/24/toNBthSbriLiZgkMaPofQoZPVtCCKfJetwFN/ emacs & svn 1.16 DONE ediff 1.16.1 比较当前两个比较当前两个比较当前两个比较当前两个buffer: ediff-buffers Ediff is an easy way to compare two versions of a file. The most common way I activate is with M-x ediff-buffers. Emacs highlights the differing regions in the buffers and pops up a new window in which you can enter additional commands. For example, n and p move among differing regions in the buffers. For each region, you can copy the first (or second) buffer's version to the other buffer with a and b, respectively. You can even edit either buffer while Ediff is active. Then you can switch back to the Ediff window and press ! to recompute the diff. Being able to view the differences between two files interactively— while editing those files— can be really useful. http://web.psung.name/emacstips/topten.html Essential Emacs tips 1.16.2 useful command '|' n enter emacs file:///D:/ntemacs23/myemacs/My%20Dropbox/private_data/e... 12 of 65 2010-01-28 21:54 v/V 1.16.3 useful link http://milton.bloghome.cn/posts/64518.html Emacs 中Ediff 小结 1.17 DONE emacs 最小化最小化最小化最小化,然后最大化时然后最大化时然后最大化时然后最大化时,minbuffer 不见了不见了不见了不见了 COMPUTER 2008-09-16 Tue 09:15 1.17.1 解决办法解决办法解决办法解决办法, 将将将将(create-fontset-from-fontset-spec "-outline-courier new-normal-r-normal-normal- 19-97-96-96-c-*-fontset-filebat") 改为改为改为改为(create-fontset-from-fontset-spec "-outline-courier new-normal- r-normal-normal-17-97-96-96-c-*-fontset-filebat") 1.18 DONE blog to wordpress 2008-09-13 21:39 1.18.1 quick start M-x weblogger-setup-weblog M-x weblogger-select-configuration, 选择你刚才设置的配置信息 如果你暂时不想发表的话,那么 M-x weblogger-save-entry 则是将你文章保存到服务器上 weblogger 会自动保存你的博客在 ~/Mail/drafts 里 创建:M-x weblogger-start-entry 发表:M-x weblogger-publish-entry (C-x C-s) 你可能想发表之前保存的草稿,或者不满意已经发表的文章,需要修改或者删除,那么你 需要用到:M-x weblogger-fetch-entries 下一张帖: weblogger-next-entry 删除:M-x weblogger-delete-entry (C-c C-k) 1.18.2 useful link http://vvoody.org/blog/?p=71 [Emacs] 用Emacs 写博客 http://banjia.blogbus.com/ 博客搬家 1.19 DONE LaTeX 1.19.1 useful link http://docs.huihoo.com/homepage/shredderyin/tex_frame.html Tex 与LaTex http://edt1023.sayya.org/tex/latex123/node1.html latex http://www.ssc.wisc.edu/~dvanness/howto.htm How to Install LaTeX for Windows 95/98/NT emacs file:///D:/ntemacs23/myemacs/My%20Dropbox/private_data/e... 13 of 65 2010-01-28 21:54 latex sample http://tech.idv2.com/2006/04/03/latex-memo-1/ 学习笔记(一) http://tech.idv2.com/2006/04/05/latex-memo-2/ 学习笔记(二) http://tech.idv2.com/2006/04/05/latex-memo-3/ 学习笔记(三) 1.19.2 quick start 1.19.2.1 export tex to pdf 1.19.2.2 export tex to html http://gentoo-wiki.com/HOWTO_Convert_LaTeX_to_HTML_with_MathML LaTeX to HTML mzlatex my texfile "xhtml,mathml-" 1.20 DONE gnus EMACS 1.20.1 useful link http://codex.wordpress.org.cn/Emacs_gnus 从零开始GNUS 旅程 http://learn.tsinghua.edu.cn:8080/2002315162/gnus_tutorial.html 用Gnus 收发邮件泡新闻组 http://kt.doopai.com/emacs/gnus.html Gnus 简介 1.20.1.1 推荐新闻服务器推荐新闻服务器推荐新闻服务器推荐新闻服务器 news.cn99.com freenews.netfront.net 1.20.1.2 推荐新闻组推荐新闻组推荐新闻组推荐新闻组 cn.comp.os.linux gnu.emacs.help 1.20.2 basic description 1.20.2.1 Group buffer mode 创建组 G m 1.21 DONE dictionary 的使用的使用的使用的使用 CLOSED: 2009-05-09 星期六 01:01 emacs file:///D:/ntemacs23/myemacs/My%20Dropbox/private_data/e... 14 of 65 2010-01-28 21:54 1.21.1 best practice 1) 从下面链接中,下载dictd/dict 安装文件。 http://heanet.dl.sourceforge.net/sourceforge/dict/dictd-1.10.0.tar.gz dictd-1.10.0.tar.gz 2) 安装dictd/dict 解压后, ./configure, make, make install 3) 安装词库 从ftp://ftp.dict.org/dict/pre 中下载相应的词库 web1913 是大名鼎鼎的webster ,还有比较全的gcide ,查计算机词汇的foldoc, 查地理的 gazetteer ,princeton 开放的著名的wordnet(wn), 以及查化学元素的element 创建目录/usr/local/lib/dict, 并将词库压缩包解压后的文件复制到该目录中。 4)创建服务器dictd 和客户端dict 的配置文件 dictd 如果没有通过-c 选项特别指出配置文件的位置的话,那么它会以为配置文件在/etc /dictd.conf 。dict 配置文件默认位置是/etc/dict.conf 创建服务器端的配置文件/etc/dictd.conf ,在文件中指出词库数据库的位置。 如果安装了webster 和foldoc 文件,那么该配置文件的内容为 database web1913 { data "/usr/local/dictd/lib/dict/web1913.dict.dz" index "/usr/local/dictd/lib/dict/web1913.index" } database foldoc { data "/usr/localdictd/lib/dict/foldoc.dict.dz" index "/usr/local/dictd/lib/dict/foldoc.index" } 创建客户端的配置文件/etc/dict.conf, 内容为 server 127.0.0.1 5) 将dictd/dict 集成到emacs 中 从http://me.in-berlin.de/~myrkr/dictionary/index.html, 中下载dictionary-1.8.7.tar.gz 解压后,make 来生成elisp 的byte-compile 文件,即elc 文件拷贝到某个目录。例如:~/myemacs /dictionary ,这里~表示emacs 的根目录。 将如下代码粘贴到emacs 的配置文件中 ;;dictionary (add-to-list 'load-path "~/myemacs/dictionary") (autoload 'dictionary-search "dictionary" "Ask for a word and search it in all dictionaries" t) (autoload 'dictionary-match-words "dictionary" "Ask for a word and search all matching words in the dictionaries" t) (autoload 'dictionary-lookup-definition "dictionary" "Unconditionally lookup the word at point." t) (autoload 'dictionary "dictionary" "Create a new dictionary buffer" t) (autoload 'dictionary-mouse-popup-matching-words "dictionary" "Display entries matching the word at the cursor" t) (autoload 'dictionary-popup-matching-words "dictionary" "Display entries matching the word at the point" t) (autoload 'dictionary-tooltip-mode "dictionary" emacs file:///D:/ntemacs23/myemacs/My%20Dropbox/private_data/e... 15 of 65 2010-01-28 21:54 "Display tooltips for the current word" t) (autoload 'global-dictionary-tooltip-mode "dictionary" "Enable/disable dictionary-tooltip-mode for all buffers" t) ;; key bindings (global-set-key "\C-cs" 'dictionary-search) (global-set-key "\C-cm" 'dictionary-match-words) ;; choose a dictionary server (setq dictionary-server "127.0.0.1") 1.21.2 DONE 启动服务端启动服务端启动服务端启动服务端dictd: dictd -c /etc/dictd.conf -t hello CLOSED: 2009-05-09 星期六 01:02 1.21.3 useful link http://www.cublog.cn/u/18537/showart_197033.html 让Emacs 变成字典 http://hi.baidu.com/filebat/blog/item/bacc8fefb139f5e9cf1b3e87.html 在emacs 中,提供字典功能 1.22 DONE calendar 中显示中文日历中显示中文日历中显示中文日历中显示中文日历 CLOSED: 2009-11-10 Tue 00:05 1.23 DONE 设置设置设置设置mark 时时时时, 高亮显示出来高亮显示出来高亮显示出来高亮显示出来 IMPORTANT CLOSED: 2009-06-13 星期六 22:29 1.23.1 basic bookmarks # C-x r m Set the bookmark for the visited file, at point. # C-x r m bookmark Set the bookmark named bookmark at point (bookmark-set). # C-x r b bookmark Jump to the bookmark named bookmark (bookmark-jump). # C-x r l List all bookmarks (list-bookmarks). # M-x bookmark-save Save all the current bookmark values in the default bookmark file. 1.23.1.1 useful link http://www.emacswiki.org/emacs/BookMarks Bookmarks emacs file:///D:/ntemacs23/myemacs/My%20Dropbox/private_data/e... 16 of 65 2010-01-28 21:54 1.23.2 bm bm-show-all: list bookmarks in all buffers bm-bookmark-line: Setting bookmark based on line number bm-bookmark-annotate/bm-bookmark-show-annotation: Annotate bookmarks variable of bm-repository- file:Filename to store persistent bookmarks across sessions. 1.23.3 DONE 使用使用使用使用bm 来高亮显示来高亮显示来高亮显示来高亮显示mark, 并并并并persistent 这些这些这些这些mark[2/2] CLOSED: 2009-06-13 星期六 22:18 1.23.3.1 DONE 配置颜色配置颜色配置颜色配置颜色 CLOSED: 2009-06-13 星期六 22:17 原想通过设置变量值未果, 直接改bm.el 的代码了 (defface bm-persistent-face '((((class grayscale) (background light)) (:background "DimGray")) (((class grayscale) (background dark)) (:background "LightGray")) (((class color) (background light)) (:foreground "White" :background "DarkOrange1")) (((class color) (background dark)) (:foreground "White" :background "DarkOrange1"))) "Face used to highlight current line if bookmark is persistent." (defface bm-fringe-persistent-face '((((class grayscale) (background light)) (:background "DimGray")) (((class grayscale) (background dark)) (:background "LightGray")) (((class color) (background light)) (:foreground "White" :background "DarkOrange1")) (((class color) (background dark)) (:foreground "White" :background "DarkOrange1"))) "Face used to highlight bookmarks in the fringe if bookmark is persistent." 1.23.3.2 CANCELED 关闭关闭关闭关闭emacs 时时时时,保持当前保持当前保持当前保持当前mark emacs file:///D:/ntemacs23/myemacs/My%20Dropbox/private_data/e... 17 of 65 2010-01-28 21:54 CLOSED: 2009-06-13 星期六 22:17 If you are using desktop or other packages that restore buffers on start up, bookmarks will not be restored. When using 2 diary-mode in emacs IMPORTANT 2.1 DONE > runs the command calendar-scroll-left CLOSED: 2009-05-09 星期六 22:34 2.2 DONE 显示所有节日显示所有节日显示所有节日显示所有节日:在在在在calendar 中输入中输入中输入中输入x CLOSED: 2009-05-04 星期一 23:40 x: Mark holidays in the calendar window (mark-calendar-holidays). u: Unmark calendar window (calendar-unmark). h: Display holidays for the selected date 2.3 DONE 列出所有列出所有列出所有列出所有holiday:M-x list-holidays CLOSED: 2009-05-04 星期一 23:40 2.3.1 basic description h: Display holidays for the selected date a: List all holidays for the displayed three months in another window 2.3.2 useful link http://www.gnu.org/software/emacs/manual/html_node/emacs/Holidays.html Holidays 2.4 DONE 设置设置设置设置diary 文件的存放位置文件的存放位置文件的存放位置文件的存放位置 CLOSED: 2009-05-04 星期一 23:27 (setq diary-file "~/myemacs/data/diary") 2.5 DONE 添加自己添加自己添加自己添加自己holiday CLOSED: 2009-05-04 星期一 22:58 (setq calendar-holidays (append '( emacs file:///D:/ntemacs23/myemacs/My%20Dropbox/private_data/e... 18 of 65 2010-01-28 21:54 (holiday-lunar 6 21 "filebat 生日") (holiday-fixed 12 25 "Cary 生日") ) calendar-holidays)) 2.6 CANCELED 提示时提示时提示时提示时,采用要求输入采用要求输入采用要求输入采用要求输入"是是是是/否否否否"才退出才退出才退出才退出 CLOSED: 2009-05-04 星期一 23:22 workaround: 自己会弹出diary 的窗口, 不退出 2.7 useful link http://www.chemie.fu-berlin.de/chemnet/use/info/elisp/elisp_37.html Customizing the Calendar and Diary ( ★★★ ) http://www.emacswiki.org/emacs/DiaryMode DiaryMode http://www.cs.cmu.edu/cgi-bin/info2www? (emacs)Appointments (emacs)Appointments http://www.gnu.org/software/emacs/manual/html_node/emacs/Appointments.html Appointments http://www.phys.ufl.edu/docs/emacs/emacs_399.html Appointments http://sunsite.univie.ac.at/textbooks/emacs/emacs_33.html The Calendar and the Diary 3 elisp[3/4] IMPORTANT 3.1 TODO 如何高亮显示某个区域如何高亮显示某个区域如何高亮显示某个区域如何高亮显示某个区域 自定义的query-flush-lines 函数,需要高亮显示当前行 3.2 DONE 定义函数的返回值定义函数的返回值定义函数的返回值定义函数的返回值 CLOSED: 2009-05-10 星期日 14:45 最后一句话的值,即返回值 3.3 DONE let*:Bind variables according to varlist then eval body. CLOSED: 2009-05-09 星期六 16:13 3.4 DONE 输入使用输入使用输入使用输入使用msg CLOSED: 2009-05-09 星期六 15:36 (message "[copy]%s" (substring-no-properties (current-kill 0))) emacs file:///D:/ntemacs23/myemacs/My%20Dropbox/private_data/e... 19 of 65 2010-01-28 21:54 3.5 useful link http://www.gnu.org/software/emacs/emacs-lisp-intro/html_node/index.html An Introduction to Programming in Emacs Lisp 4 search/replace 4.1 DONE 搜索搜索搜索搜索tab 键键键键:C-s C-i CLOSED: 2009-05-03 星期日 23:13 4.2 DONE 正则表达式正则表达式正则表达式正则表达式:去掉行尾的空格去掉行尾的空格去掉行尾的空格去掉行尾的空格 IMPORTANT CLOSED: 2009-04-22 Wed 22:46 M-x query-replace-regexp " +$" "" 4.3 search content of current word: C-w 4.4 DONE 批量删除一个文件夹中批量删除一个文件夹中批量删除一个文件夹中批量删除一个文件夹中, 所有文件的所有文件的所有文件的所有文件的tailing space: M-x find-name-dired + t + Q CLOSED: 2009-08-31 星期一 23:10 4.5 search content of current line: C-y 4.6 DONE search and replace in files IMPORTANT CLOSED: 2009-07-22 星期三 00:08 4.7 DONE search recursively: M-x rgrep CLOSED: 2009-07-21 星期二 23:54 4.8 DONE 通过通过通过通过dired 的模式的模式的模式的模式,先选中一组文件先选中一组文件先选中一组文件先选中一组文件,再再再再M-x dired-do-query-replace-regexp CLOSED: 2009-07-22 星期三 00:07 M-x find-name-dired: you will be prompted for a root directory and a filename pattern.1. Press t to "toggle mark" for all files found.2. Press Q for "Query-Replace in Files…": you will be prompted for query/substitution regexps. 3. Proceed as with query-replace-regexp: SPACE to replace and move to next match, n to4. emacs file:///D:/ntemacs23/myemacs/My%20Dropbox/private_data/e... 20 of 65 2010-01-28 21:54 skip a match, etc. 4.9 useful link http://emacs-fu.blogspot.com/2009/06/search-and-replace-in-files.html search and replace in files http://atomized.org/2009/05/emacs-nerdery-search-replace-across-files/ Emacs Nerdery: Search & replace across files http://stackoverflow.com/questions/270930/using-emacs-to-recursively-find-and-replace-in-text- files-not-already-open Using Emacs to recursively find and replace in text files not already open 5 内置内置内置内置package 的使用经验的使用经验的使用经验的使用经验 5.1 DONE emacs 中是按什么键切换到中是按什么键切换到中是按什么键切换到中是按什么键切换到“全拼全拼全拼全拼”输入法输入法输入法输入法 CLOSED: 2009-06-05 星期五 15:49 C-\: toggle-input-method 5.2 DONE 输入特殊字符输入特殊字符输入特殊字符输入特殊字符 CLOSED: 2009-05-24 星期日 14:25 按 C-x 8 C-h 可以得到一份完整的列表。 5.2.1 useful link http://lifegoo.pluskid.org/wiki/EmacsTip.html Emacs 小技巧 5.3 DONE 模糊查找一个模糊查找一个模糊查找一个模糊查找一个command 的帮助的帮助的帮助的帮助:M-x apropos IMPORTANT CLOSED: 2009-05-09 星期六 10:58 5.4 DONE find out keyborad shortcuts for current buffer:M-x describe-bindings CLOSED: 2009-05-09 星期六 10:55 5.5 DONE Master the buffer and window commands CLOSED: 2009-05-09 星期六 10:55 5.5.1 basic description emacs file:///D:/ntemacs23/myemacs/My%20Dropbox/private_data/e... 21 of 65 2010-01-28 21:54 Ctrl-x 2: split-window-vertically Ctrl-x 3: split-window-horizontally Ctrl-x +: balance-windows Ctrl-x o: other-window 5.5.2 useful link http://steve.yegge.googlepages.com/effective-emacs effective emacs 5.6 DONE 统计某个单词统计某个单词统计某个单词统计某个单词/句子出现的次数句子出现的次数句子出现的次数句子出现的次数 应急的方法 尝试替换ERROR 为ERROR。emacs 替换后会告诉你替换了多少个 5.6.1 useful link http://www.douban.com/group/topic/5154524/ 计算某个 单词/句子 出现的次数 5.7 DONE 如何加下划线如何加下划线如何加下划线如何加下划线 a see rinari-alist-from-view 5.7.1 basic description 以一个下划线开头,以一个下划线结尾的字符串,会被自动加上下划线 5.8 DONE [#A] minbuffer 的提示没有关闭的提示没有关闭的提示没有关闭的提示没有关闭 CLOSED: 2009-05-04 星期一 00:09 C-x o 切换到minbuffer 中,再按C-g 退出 5.9 DONE 删除段尾空行删除段尾空行删除段尾空行删除段尾空行:C-x C-o(delete-blank-lines) RECOMMENDATE CLOSED: 2009-05-09 星期六 20:31 5.10 DONE 查看查看查看查看emacs 当前当前当前当前load 了哪些了哪些了哪些了哪些lisp CLOSED: 2009-05-24 星期日 14:59 查找路径: load-path 5.11 DONE uniquify: make buffer names unique CLOSED: 2009-05-24 星期日 14:59 emacs file:///D:/ntemacs23/myemacs/My%20Dropbox/private_data/e... 22 of 65 2010-01-28 21:54 5.11.1 basic description (require 'uniquify) (setq uniquify-buffer-name-style 'post-forward) 5.11.2 useful link http://www.emacswiki.org/emacs/uniquify uniquify http://lifegoo.pluskid.org/wiki/EmacsTip.html#sec11 对付重名 buffer http://www.gnu.org/software/emacs/manual/html_node/emacs/Uniquify.html Making Buffer Names Unique 5.12 DONE 删除尾部的空格删除尾部的空格删除尾部的空格删除尾部的空格:M-x delete-trailing-whitespace CLOSED: 2009-05-03 星期日 23:01 5.13 DONE dired mode 中设置为只打开一个中设置为只打开一个中设置为只打开一个中设置为只打开一个buffer CLOSED: 2009-05-24 星期日 14:22 In Emacs 22, you can use ‘a’ in a Dired buffer, instead of ‘e’, ‘f’, and ‘RET’. (put 'dired-find-alternate-file 'disabled nil) 5.13.1 useful link http://www.emacswiki.org/emacs/DiredReuseDirectoryBuffer DiredReuseDirectoryBuffer http://lifegoo.pluskid.org/wiki/EnhanceDired.html 增强 Dired 5.14 DONE eshell 中定义中定义中定义中定义alias IMPORTANT CLOSED: 2009-05-24 星期日 11:28 alias bankreg='ledger -f filebat.ledger -M reg' alias bankbal="ledger -f filebat.ledger -d 'T&l<4' bal " 5.14.1 basic description ~/.eshell/alias 中,添加 alias bankreg ledger.exe -f d:/ntemacs23/myemacs/data/filebat.ledger -d \"T&l<4\" reg $* alias bankbal ledger.exe -f d:/ntemacs23/myemacs/data/filebat.ledger -d \"T&l<4\" bal $* 5.14.2 useful link emacs file:///D:/ntemacs23/myemacs/My%20Dropbox/private_data/e... 23 of 65 2010-01-28 21:54 http://www.emacswiki.org/emacs/EshellAlias EshellAlias 5.15 DONE 将选中区域整体左移或右移将选中区域整体左移或右移将选中区域整体左移或右移将选中区域整体左移或右移 IMPORTANT CLOSED: 2009-04-27 Mon 23:03 5.15.1 basic description (define-key global-map (kbd "M-p SPC") 'guettler-push-region) (define-key global-map (kbd "M-p ") 'guettler-pull-region) ;;shift region right (defun guettler-push-region (beg en) (interactive "r") (guettler-move-region beg en 1)) ;;shift region left (defun guettler-pull-region (beg en) (interactive "r") (guettler-move-region beg en -1)) (defun guettler-move-region (beg en dir) (indent-rigidly beg en dir) ;; this line is very important. makes the region mark sticky (setq deactivate-mark nil) (push-mark beg t t)) 5.15.2 useful link http://www.emacswiki.org/emacs/MovingRegionHorizontally MovingRegionHorizontally 5.16 DONE 高亮显示尾部空格高亮显示尾部空格高亮显示尾部空格高亮显示尾部空格 CLOSED: 2009-05-03 星期日 23:32 M-x re-builder -> " $" 退出按C-c C-q 5.17 DONE 五笔输入法挡住了状态栏五笔输入法挡住了状态栏五笔输入法挡住了状态栏五笔输入法挡住了状态栏 CLOSED: 2009-04-27 Mon 21:46 将输入法,移到右侧 5.18 DONE 当按当按当按当按tab 时时时时,输入输入输入输入spaces, 而不是而不是而不是而不是tabs: 将变量将变量将变量将变量indent-tabs-mode 设为设为设为设为nil IMPORTANT CLOSED: 2009-05-03 星期日 23:09 emacs file:///D:/ntemacs23/myemacs/My%20Dropbox/private_data/e... 24 of 65 2010-01-28 21:54 5.19 DONE 变量变量变量变量preloaded-file-list: 内置加载了哪些内置加载了哪些内置加载了哪些内置加载了哪些package IMPORTANT CLOSED: 2009-05-09 星期六 22:42 preloaded-file-list variable holds a list of packages preloaded (dumped) in emacs executive. Any change to those files would require a rebuild of Emacs. 5.20 DONE unique lines IMPORTANT CLOSED: 2009-04-21 Tue 22:55 5.20.1 code snippet ;; removes duplicate lines in a buffer (defun remove-duplicate-lines () (interactive) (let ((llist nil) (cplist nil) (klist nil) (done) (mark 1)) (save-excursion (beginning-of-buffer) (while (not (eobp)) (progn (setq line (buffer-substring (save-excursion (beginning-of-line) (point)) (save-excursion (end-of-line) (point)))) (setq cplist llist) (setq done t) (while (and cplist done) (if (and (not (equal line "")) (equal line (car cplist)) (not (equal line "#endif"))) (progn (setq klist (cons mark klist)) (setq done nil))) (setq cplist (cdr cplist))) (if done (setq llist (cons line llist))) (forward-line 1) (setq mark (+ mark 1))))) (save-excursion (beginning-of-buffer) (while klist (progn (goto-line (car klist)) (kill-line 1)) (setq klist (cdr klist))))) (save-buffer (current-buffer))) 5.20.2 useful link http://www.jasondunsmore.com/emacs/dotemacs.txt emacs file:///D:/ntemacs23/myemacs/My%20Dropbox/private_data/e... 25 of 65 2010-01-28 21:54 dotemac 5.21 DONE emacs 中中中中fold python, perl, shell 的的的的code 5.21.1 使用使用使用使用hs-minor-mode 模式模式模式模式 (add-hook 'python-mode-hook 'hs-minor-mode) (global-set-key (kbd "") 'hs-toggle-hiding) 5.21.2 使用使用使用使用outline-minor-mode 模式模式模式模式 5.21.3 useful link http://groups.google.ca/group/comp.lang.python/msg/956f1c2d37f93995 Code Folding with Emacs 5.22 DONE sort-lines 的使用的使用的使用的使用 CLOSED: 2009-04-21 Tue 09:46 5.23 DONE 删除一个词,但不是复制它删除一个词,但不是复制它删除一个词,但不是复制它删除一个词,但不是复制它 HARD Most commands which erase text from the buffer save it in the kill ring so that you can move or copy it to other parts of the buffer. These commands are known as kill commands. The rest of the commands that erase text do not save it in the kill ring; they are known as delete commands. delete-region 5.23.1 useful link http://www.chemie.fu-berlin.de/chemnet/use/info/emacs/emacs_13.html Killing and Moving Text 5.24 DONE [#A] diary 与与与与calendar 的使用的使用的使用的使用 IMPORTANT CLOSED: 2009-05-09 星期六 16:11 5.24.1 DONE 将将将将holiday 的提醒放在的提醒放在的提醒放在的提醒放在diary 中中中中 CLOSED: 2009-05-09 星期六 16:09 5.24.1.1 DONE 添加农历添加农历添加农历添加农历 CLOSED: 2009-05-09 星期六 16:09 emacs file:///D:/ntemacs23/myemacs/My%20Dropbox/private_data/e... 26 of 65 2010-01-28 21:54 定义两个函数:主要功能源自于cal-china-x-birthday-from-chinese 函数 (defun cal-china-date-month (lunar-month lunar-day) "Return the month this year LUNAR-MONTH and LUNAR-DAY are date number used in chinese lunar calendar." (interactive "nlunar month: \nnlunar day: ") (let* ((birthday-chinese (list lunar-month lunar-day)) (current-chinese-date (calendar-chinese-from-absolute (calendar-absolute-from-gregorian (calendar-current-date)))) (cycle (car current-chinese-date)) (year (cadr current-chinese-date)) (birthday-chinese-full `(,cycle ,year ,@birthday-chinese)) (birthday-gregorian-full (calendar-gregorian-from-absolute (calendar-absolute-from-chinese birthday-chinese-full)))) (setq ret (extract-calendar-month birthday-gregorian-full))) ) (defun cal-china-date-day (lunar-month lunar-day) "Return the day this year LUNAR-MONTH and LUNAR-DAY are date number used in chinese lunar calendar." (interactive "nlunar month: \nnlunar day: ") (let* ((birthday-chinese (list lunar-month lunar-day)) (current-chinese-date (calendar-chinese-from-absolute (calendar-absolute-from-gregorian (calendar-current-date)))) (cycle (car current-chinese-date)) (year (cadr current-chinese-date)) (birthday-chinese-full `(,cycle ,year ,@birthday-chinese)) (birthday-gregorian-full (calendar-gregorian-from-absolute (calendar-absolute-from-chinese birthday-chinese-full)))) (setq ret (extract-calendar-day birthday-gregorian-full))) ) 在diary 中输入如下内容 ;; %%(diary-anniversary (cal-china-date-month 2 26) (cal-china-date-day 2 26)) friend's birthday 5.24.1.2 basic description emacs file:///D:/ntemacs23/myemacs/My%20Dropbox/private_data/e... 27 of 65 2010-01-28 21:54 i d: Add a diary entry for the selected date (insert-diary-entry). i w: Add a diary entry for the selected day of the week (insert-weekly-diary-entry). i m: Add a diary entry for the selected day of the month (insert-monthly-diary-entry). i y: Add a diary entry for the selected day of the year (insert-yearly-diary-entry). 5.24.1.3 useful link http://www.gnu.org/software/emacs/manual/html_node/emacs/Adding-to-Diary.html#Adding- to-Diary Commands to Add to the Diary http://www.nabble.com/cal-china-plus.el-td20625696.html cal-china-plus.el 5.24.2 DONE calendar 中跳到下一个月或上一个月中跳到下一个月或上一个月中跳到下一个月或上一个月中跳到下一个月或上一个月: M-{ CLOSED: 2009-05-09 星期六 14:53 M-{ runs the command calendar-backward-month 5.24.3 DONE 在在在在calendar 中中中中,将星期一列为一周的第一天将星期一列为一周的第一天将星期一列为一周的第一天将星期一列为一周的第一天: calendar-week-start-day CLOSED: 2009-05-09 星期六 14:51 (setq calendar-week-start-day 1) 0 means Sunday (default), 1 means Monday, and so on. 5.24.4 DONE 显示所有节日显示所有节日显示所有节日显示所有节日:在在在在calendar 中输入中输入中输入中输入x CLOSED: 2009-05-04 星期一 23:40 x: Mark holidays in the calendar window (mark-calendar-holidays). u: Unmark calendar window (calendar-unmark). h: Display holidays for the selected date 5.24.5 DONE 列出所有列出所有列出所有列出所有holiday:M-x list-holidays CLOSED: 2009-05-04 星期一 23:40 5.24.5.1 basic description h: Display holidays for the selected date a: List all holidays for the displayed three months in another window 5.24.5.2 useful link http://www.gnu.org/software/emacs/manual/html_node/emacs/Holidays.html Holidays emacs file:///D:/ntemacs23/myemacs/My%20Dropbox/private_data/e... 28 of 65 2010-01-28 21:54 5.24.6 DONE 设置设置设置设置diary 文件的存放位置文件的存放位置文件的存放位置文件的存放位置 CLOSED: 2009-05-04 星期一 23:27 (setq diary-file "~/myemacs/data/diary") 5.24.7 DONE 添加自己添加自己添加自己添加自己holiday CLOSED: 2009-05-04 星期一 22:58 (setq calendar-holidays (append '( (holiday-lunar 6 21 "filebat 生日") (holiday-fixed 12 25 "Cary 生日") ) calendar-holidays)) 5.24.8 CANCELED 提示时提示时提示时提示时,采用要求输入采用要求输入采用要求输入采用要求输入"是是是是/否否否否"才退出才退出才退出才退出 CLOSED: 2009-05-04 星期一 23:22 workaround: 自己会弹出diary 的窗口, 不退出 5.24.9 useful link http://www.chemie.fu-berlin.de/chemnet/use/info/elisp/elisp_37.html Customizing the Calendar and Diary ( ★★★ ) http://www.emacswiki.org/emacs/DiaryMode DiaryMode http://www.cs.cmu.edu/cgi-bin/info2www? (emacs)Appointments (emacs)Appointments http://www.gnu.org/software/emacs/manual/html_node/emacs/Appointments.html Appointments http://www.phys.ufl.edu/docs/emacs/emacs_399.html Appointments http://sunsite.univie.ac.at/textbooks/emacs/emacs_33.html The Calendar and the Diary 5.25 DONE 使用使用使用使用flush-line 来删除空白行来删除空白行来删除空白行来删除空白行:M-x flush-lines ^$ IMPORTANT CLOSED: 2009-04-21 Tue 23:01 flush-line:Delete lines containing matches for regexp. 5.25.1 useful link http://tindorafarms.com/index.php?hl=f5&q=uggc%3A%2F %2Fyvfcl.jbeqcerff.pbz%2F2007%2F06%2F07%2Fhfvat-dhrel-ercynpr-ertrkc-gb-erzbir-oynax- emacs file:///D:/ntemacs23/myemacs/My%20Dropbox/private_data/e... 29 of 65 2010-01-28 21:54 yvarf-sebz-n-svyr-va-rznpf%2F Using “Query replace regexp” to remove blank lines from a file in Emacs 5.26 DONE 修改字体修改字体修改字体修改字体:将字体动态变大或变小将字体动态变大或变小将字体动态变大或变小将字体动态变大或变小 CLOSED: 2009-05-04 星期一 00:09 与firefox 的Ctrl++, Ctrl– 类似的功能 Use `S-down-mouse-1’ to see the font and fontset menu 5.26.1 basic description 使用与firefox 类似的Ctrl++ 和Ctrl– 来动态地放大或缩小字体 (defun sacha/increase-font-size () (interactive) (set-face-attribute 'default nil (ceiling (* 1.10 (face-attribute 'default :height))))) (defun sacha/decrease-font-size () (interactive) (set-face-attribute 'default nil (floor (* 0.9 (face-attribute 'default :height))))) (global-set-key (kbd "C-+") 'sacha/increase-font-size) (global-set-key (kbd "C–") 'sacha/decrease-font-size) 5.26.2 useful link http://www.emacswiki.org/emacs/SetFonts SetFonts http://sachachua.com/wp/2006/09/15/emacs-changing-the-font-size-on-the-fly/ Emacs: Changing the font size on the fly http://ubuntuforums.org/showthread.php?t=499447 emacs file:///D:/ntemacs23/myemacs/My%20Dropbox/private_data/e... 30 of 65 2010-01-28 21:54 Eterm font help (usefule font list) http://hi.baidu.com/filebat/blog/item/8af77f59f208dc2c2934f06d.html [elisp] 动态地放大缩小字体 5.27 DONE grep-find:exclude the directory of .svn HARD IMPORTANT 5.27.1 add the following line to ur emacs configuration file (setq grep-find-command " find . -name \".svn\" -prune -o -type f -print0 | xargs -0 -e grep -nH -e ") 5.27.2 filter when finding find . -type f -print find . -name ".svn" -prune -o -type f -print http://www.unix.com/shell-programming-scripting/80809-find-but-exclude-directories.html Find but exclude directories 5.27.3 filter after finding find . -type f -print | grep -v '/[.]' http://www.linuxforums.org/forum/linux-programming-scripting/66523-how-do-you-exclude-files- find-command.html How do you exclude files in the find command 5.28 DONE python 的帮助有时候有的帮助有时候有的帮助有时候有的帮助有时候有,有时候又没有了有时候又没有了有时候又没有了有时候又没有了 CLOSED: 2009-04-21 Tue 23:57 在def 后面直接按tab 即可,其它地方不行 5.29 DONE find-name-dired: exclude the direcotry of .svn IMPORTANT 5.29.1 add the following line to ur emacs configuration file (setq find-ls-option '("-exec ls -ld \"{}\" \";\" | grep -v ./.svn" . "-ld")) 5.30 DONE TabBarMode IMPORTANT CLOSED: 2009-06-22 星期一 22:03 5.30.1 basic description in tabbar mode: By default, tabs are grouped by major mode. (load-file "~/myemacs/tabbar/tabbar.el") (require 'tabbar) emacs file:///D:/ntemacs23/myemacs/My%20Dropbox/private_data/e... 31 of 65 2010-01-28 21:54 (tabbar-mode) (global-set-key (kbd "") 'tabbar-forward-tab) 5.30.2 CANCELED tab 的的的的style 不好看不好看不好看不好看 CLOSED: 2009-06-22 星期一 22:03 5.30.3 CANCELED title 中显示不对中显示不对中显示不对中显示不对 CLOSED: 2009-06-22 星期一 22:02 5.30.4 useful link http://amitp.blogspot.com/2007/04/emacs-buffer-tabs.html Amit's Thoughts: Emacs: buffer tabs http://www.emacswiki.org/cgi-bin/wiki/TabBarMode TabBarMode 5.31 DONE ispell 的使用的使用的使用的使用 IMPORTANT CLOSED: 2009-05-09 星期六 16:24 5.31.1 DONE 查看查看查看查看ispell 的数据库默认位置的数据库默认位置的数据库默认位置的数据库默认位置:~/.ispell english CLOSED: 2009-05-09 星期六 16:24 5.31.2 DONE 使用使用使用使用flyspell-mode 模式模式模式模式 CLOSED: 2009-05-09 星期六 16:24 M-$: correct words (using Ispell). M-TAB: automatically correct word. 5.31.3 useful link http://www.emacswiki.org/cgi-bin/wiki/GettingIspellWorkinginEmacsForWindows GettingIspellWorkinginEmacsForWindows http://www.lasr.cs.ucla.edu/geoff/tars/ispell-3.3.02.tar.gz ispell 3.3.02 http://www.lasr.cs.ucla.edu/geoff/ispell.html International Ispell http://tindorafarms.com/index.php?hl=f5&q=uggc%3A%2F %2Fmxjney.oybtfcbg.pbz%2F2007%2F01%2Frznpf-gvc-vafgnyy-vfcryy-ba-jvaqbjf.ugzy Emacs Tip: Install Ispell on Windows emacs file:///D:/ntemacs23/myemacs/My%20Dropbox/private_data/e... 32 of 65 2010-01-28 21:54 5.32 DONE 矩阵矩阵矩阵矩阵rectangle 操作操作操作操作 IMPORTANT CLOSED: 2009-06-20 星期六 16:44 5.32.1 useful command after install package of rect-mark rm-seg-mark: C-x r C-@ rm-exchange-point-and-mark:C-x r C-x rm-kill-region: C-x r C-w rm-kill-ring-save: C-x r M-w 5.32.2 useful link http://www.emacswiki.org/emacs/RectangleMark RectangleMark 5.32.3 DONE 矩形操作矩形操作矩形操作矩形操作:表格拷贝一列表格拷贝一列表格拷贝一列表格拷贝一列 IMPORTANT CLOSED: 2009-06-20 星期六 22:17 5.32.3.1 basic description C-x r o: Insert blank space to fill the space of the region-rectangle C-x r c: Clear the region-rectangle by replacing all of its contents with spaces C-x r r: copy-rectangle-to-register C-x r i r: insert-register M-x string-insert-rectangle string : Insert string on each line of the rectangle. C-x r y: Yank the last killed rectangle with its upper left corner at point (yank-rectangle) 5.32.3.2 CANCELED 如何将如何将如何将如何将region-rectangle 中的内容复制到中的内容复制到中的内容复制到中的内容复制到kill ring 中中中中, 来方便的拷贝到来方便的拷贝到来方便的拷贝到来方便的拷贝到excel 等外部程序中等外部程序中等外部程序中等外部程序中 CLOSED: 2009-04-27 Mon 22:36 workaround: 将region-rectangle 通过yank-rectangle 或insert-register 将内容输出,再复制 5.32.3.3 useful link http://tindorafarms.com/index.php?hl=f5&q=uggc%3A%2F %2Frznpfjbeyq.oybtfcbg.pbz%2F2008%2F01%2Fjul-vf-gurer-ab-pbcl-erpgnatyr.ugzy Why is there no copy rectangle? http://www.gnu.org/software/emacs/manual/html_node/emacs/Rectangles.html Rectangles 5.33 DONE Artist mode emacs file:///D:/ntemacs23/myemacs/My%20Dropbox/private_data/e... 33 of 65 2010-01-28 21:54 CLOSED: 2009-06-13 星期六 23:25 It lets you draw lines, squares, rectangles and poly-lines, ellipses, and circles with your mouse and/or keyboard It is extremely useful when inserting text diagrams or figures in your source comments. 5.33.1 useful link http://www.cinsk.org/emacs/emacs-artist.html Emacs Screencast: Artist Mode 5.34 DONE 对对对对.eshell/alias 的存放位置进行的存放位置进行的存放位置进行的存放位置进行customizew CLOSED: 2009-07-21 星期二 22:33 (setq eshell-aliases-file "~/myemacs/data/filebat.alias") 5.35 DONE 查出日出日落时间查出日出日落时间查出日出日落时间查出日出日落时间 CLOSED: 2009-11-07 Sat 13:59 上海位于北纬31 度11 分,东经121 度29 分。 设置所在地的经纬度和地名,calendar 中按 S ,可以根据这些信息告知你每天的 日出和日落的时间: (setq calendar-latitude +45.75) (setq calendar-longitude +126.63) (setq calendar-location-name "Harbin") 5.36 DONE patch a file with a diff: ediff-patch-buffer IMPORTANT CLOSED: 2009-11-06 Fri 23:50 ediff-patch-file: patch couple file 5.36.1 useful link http://stackoverflow.com/questions/1224832/can-i-use-ediff-if-i-have-a-file-and-a-diff-rather- than-two-versions-of-the-same Can I use ediff if I have a file and a diff, rather than two versions of the same file? http://www.opengroup.org/onlinepubs/007908799/xcu/patch.html patch http://en.wikipedia.org/wiki/Patch_%28Unix%29 patch (Unix) 5.37 DONE flyspell-mode 中中中中,添加添加添加添加word 到词库中到词库中到词库中到词库中 CLOSED: 2009-06-27 星期六 00:25 调用ispell, 提示对于词库认为不对的词,按i, 加入到个人词库中。按空格表示既不修改,又 emacs file:///D:/ntemacs23/myemacs/My%20Dropbox/private_data/e... 34 of 65 2010-01-28 21:54 不添加到词库中 (setq ispell-personal-dictionary "~/myemacs/data/.ispell english ") 5.37.1 useful link http://www-sop.inria.fr/members/Manuel.Serrano/flyspell/flyspell.html flyspell.el 5.38 DONE 在选中区域进行在选中区域进行在选中区域进行在选中区域进行occur 操作操作操作操作 CLOSED: 2009-06-22 星期一 22:05 通过narrow editing 的方式 5.39 DONE print from emacs CLOSED: 2009-11-11 Wed 23:31 5.39.1 basic description Emacs comes with libraries printing.el, lpr.el, and ps-print.el, but they are not preloaded. (require 'printing) ; load printing package (setenv "GS LIB" "d:/Program Files/gs/gs8.64/lib;") (setq ps-lpr-command "d:/Program Files/gs/gs8.64/bin/gswin32c.exe") (setq ps-lpr-switches '("-q" "-dNOPAUSE" "-dBATCH" "-sDEVICE=mswinpr2")) (setq ps-printer-name t) 5.39.2 useful link http://www.emacswiki.org/cgi-bin/wiki/PrintingFromEmacs PrintingFromEmacs 5.40 DONE 使用使用使用使用cua-mode CLOSED: 2009-11-22 Sun 22:45 5.40.1 useful link http://www.vimeo.com/1168225?pg=embed&sec=1168225 Emacs Column Editing 6 basic feature 基本功能基本功能基本功能基本功能 6.1 移动光标移动光标移动光标移动光标: emacs file:///D:/ntemacs23/myemacs/My%20Dropbox/private_data/e... 35 of 65 2010-01-28 21:54 C-M-a: 跳到上一个函数的开头 C-M-e: 跌到下一个函数的结尾 C-M-p: 跳到下一个括号的开头 C-M-n: 跳到下一个括号的结尾 C-c C-c: 转到出错处 C-x `: 转到下一个错误处 C-j: 回车换行,并自动对齐 6.1.1 保存光标位置保存光标位置保存光标位置保存光标位置 将当前光标所在位置保存入一个register 中: C-x r SPACE + register 名(一个字符,比如a吧) 然后我们就可以到处瞎逛,若要回到保存的register a 位置,我们可以输入: C-x r j a (jump to position a) M-x view-register 查看某一个register M-x list-registers 查看所有的register C-x r SPC r Save position of point in register r (point-to-register). C-x r j r Jump to the position saved in register r (jump-to-register). 6.2 删除删除删除删除: C-x C-o delete-blank-lines 删除空白行 删除从光标位置到行首:C-u 0 C-k 删除从光标位置到行尾:C-k 删除光标前的一个单词:M-Backspace 删除光标后的一个单词:M-d M-SPC(just-one-space): 删除连续的空格只保留一个空格 6.3 搜索搜索搜索搜索: query-replace:M-% C-s 时候如何粘贴要搜的内容:M-y 按内容搜索grep 6.4 输入输入输入输入: tab 键一般被用来做格式化,输入一个真正的tab:C-q TAB 6.5 交换交换交换交换: C-t: 交换两个字母 Esc-t: 交换两个单词 ESC-c: 将单词首字母变成大写 6.6 注释:注释:注释:注释: 添加注释:M-; emacs file:///D:/ntemacs23/myemacs/My%20Dropbox/private_data/e... 36 of 65 2010-01-28 21:54 注释掉选中的区域:C-c C-c 取消选项区域的注释:C-u C-c C-c 6.7 选择选择选择选择: 使用 C-M-SPC ,可以快速选定一个段 C-M-h 在程序中一般选择的是函数体 6.8 模式模式模式模式: flymake-mode: 在编译前,将出错减少到最小。以实现只需要编译一次的目的。 yasnippet-bundle: 提供了大量内置的skeleton ,减轻了常规输入。 6.9 宏操作宏操作宏操作宏操作: C-x ( 开始定义宏 C-x ) 结束定义宏 C-x e 运行最近定义的宏 M-x name-last-kbd-macro 给最近定义的宏命名(用来保存) M-x insert-kbd-macro 将已命名的宏保存到文件 M-x load-file 载入宏 6.10 其它:其它:其它:其它: c-o:Insert a newline and leave point before it c-j:Insert a newline, then indent according to major mode M-left: backward-word 自动补齐:M-/ 格式化代码:c-indent-line-or-region C-h l: 100 keystrokes, Lists the last 100 keystrokes. 6.11 帮助帮助帮助帮助: C-h b 显示当前缓冲区所有可用的快捷键 C-h w 显示命令被绑定到哪些快捷键上 C-h k 显示快捷键绑定的命令和它的作用 C-h l 显示最后100 个键入的内容 M-x command-history: 历史命令 6.12 游戏游戏游戏游戏 tetris: 俄罗期方块 6.13 十六进制查看和编辑文件十六进制查看和编辑文件十六进制查看和编辑文件十六进制查看和编辑文件hexl-mode 6.14 occur:show all lines in the current buffer containing a match for regexp 6.15 DONE 不保存备份文件不保存备份文件不保存备份文件不保存备份文件 emacs file:///D:/ntemacs23/myemacs/My%20Dropbox/private_data/e... 37 of 65 2010-01-28 21:54 (setq make-backup-files nil) 6.15.1 useful link http://blog.163.com/alienblue@126/blog/static/20043906200810151456381/ GNU Emacs 的自动自动备份 6.16 DONE 头文件和头文件和头文件和头文件和CPP 文件切换文件切换文件切换文件切换 (find-file (replace-regexp-in-string "\\.cpp" "\.h" file-name))) 6.17 DONE 看图片看图片看图片看图片thumbs – view picture EMACS 6.17.1 TODO unable to open jpg file: Invalid image specification 6.17.1.1 useful link http://old.nabble.com/unable-to-open-jpg-file-td14781748.html unable to open jpg file 6.17.2 不支持中文的文件和目录不支持中文的文件和目录不支持中文的文件和目录不支持中文的文件和目录 6.17.3 闪屏闪屏闪屏闪屏 6.17.4 分辨率分辨率分辨率分辨率 6.17.5 自定义设置自定义设置自定义设置自定义设置 (defcustom thumbs-geometry "500x500" (defcustom thumbs-per-line 8 (defcustom thumbs-max-image-number 32 6.17.6 bug 6.17.6.1 resize 完第一张图片后完第一张图片后完第一张图片后完第一张图片后, 再再再再resize 第二张时第二张时第二张时第二张时,就返回到之前了就返回到之前了就返回到之前了就返回到之前了 6.17.6.2 图片闪烁图片闪烁图片闪烁图片闪烁 光标在(0,0) 时会闪烁 6.17.6.3 不支持中文的目录和文件名不支持中文的目录和文件名不支持中文的目录和文件名不支持中文的目录和文件名 6.17.6.4 只能显示只能显示只能显示只能显示jpg 文件文件文件文件 6.17.7 DONE resize 图片大小图片大小图片大小图片大小 emacs file:///D:/ntemacs23/myemacs/My%20Dropbox/private_data/e... 38 of 65 2010-01-28 21:54 800X600 的图片是比较好看的 通过调用ImageMagick 的convert 工具外部实现了 6.18 DONE C-u 如何重复一组击键如何重复一组击键如何重复一组击键如何重复一组击键 C-x (, C-x ) 来定义宏 C-x e 来运行宏 6.19 DONE 在在在在fundanment 模式下交换上下行模式下交换上下行模式下交换上下行模式下交换上下行 C-x C-t 6.20 DONE calendar 日历日历日历日历 6.20.1 shortcut key calendar: 进入日历 h:calendar-cursor-holidays a:list-calendar-holidays g C:calendar-goto-chinese-date g d:calendar-goto-date i d:insert-diary-entry i w:insert-weekly-diary-entry d:diary-view-entries s:diary-show-all-entries i a:insert-anniversary-diary-entry 6.21 DONE 使用只读方式打开大多数文件使用只读方式打开大多数文件使用只读方式打开大多数文件使用只读方式打开大多数文件 6.21.1 emacs 打开文件时打开文件时打开文件时打开文件时,运行相应的运行相应的运行相应的运行相应的hook 函数函数函数函数 6.21.2 解决方案解决方案解决方案解决方案 M-x view-mode 在打开文件时的设置:(add-hook 'find-file-hook 'open-view-mode) 6.22 DONE delete-other-windows 是做啥的是做啥的是做啥的是做啥的 Make window(or the selected window) fill its frame 6.23 DONE emacs 按内容搜索按内容搜索按内容搜索按内容搜索grep-find 很实用 6.24 DONE 使用使用使用使用cygwin 的的的的shell 而不是而不是而不是而不是emacs shell variable:explicit-shell-file-name, shell-file-name emacs file:///D:/ntemacs23/myemacs/My%20Dropbox/private_data/e... 39 of 65 2010-01-28 21:54 6.24.1 useful link http://stackoverflow.com/questions/235254/how-can-i-run-cygwin-bash-shell-from-within-emacs How can I run Cygwin Bash Shell from within Emacs? 6.25 DONE message (message "\"%s\" is a string, %d is a number, and %c is a character" "hi there" 142 ?q) (read-string "tmp1: " cmd);;cmd is a variable 6.26 计算器功能计算器功能计算器功能计算器功能calc Tab 键更换两个operator 的上下顺序 6.27 dired 文件系统操作文件系统操作文件系统操作文件系统操作 6.28 useful link 6.28.1 windows 平台下安装程序平台下安装程序平台下安装程序平台下安装程序 http://sourceforge.net/project/showfiles.php?group_id=158819 Latest Win32 binary builds of Emacs CVS http://ourcomments.org/Emacs/EmacsW32.html EmacsW32 Home Page 6.28.2 tutorial 输入C-h t, 即按Control+h t http://www.gnu.org/software/emacs/tour/ A Guided Tour of Emacs 6.28.3 配置样式配置样式配置样式配置样式 http://pluskid.lifegoo.com/wiki/EmacsColorTheme.html Emacs color-theme http://www.emacswiki.org/emacs/ColorTheme ColorTheme 6.28.4 eshell 按M-x(M 表示alt 键), 输入eshell 回车即可 6.28.5 org-mode http://orgmode.org/manual/index.htm The Org Manual 6.28.6 general emacs file:///D:/ntemacs23/myemacs/My%20Dropbox/private_data/e... 40 of 65 2010-01-28 21:54 http://steve.yegge.googlepages.com/effective-emacs Effective Emacs http://cookinglinux.cn/emacs-learning-three-step.html#more-561 emacs 学习三部曲 http://grid.tsinghua.edu.cn/home/liulk/publish/emacs/EmacsFaq.html Emacs 中文FAQ http://www.emacswiki.org/ http://ann77.stu.cdut.edu.cn/EmacsIndex.html Emacs 一个强大的平台 http://www.wanglianghome.org/blog/2006/04/emacs-show-motivation.html Emacs Show – Motivation http://www.douban.com/group/topic/1005739/ 大家用Emacs 来干嘛 http://www.delorie.com/gnu/docs/elisp-manual-21/elisp_toc.html GNU Emacs Lisp Reference Manual http://www.emacswiki.org/cgi-bin/wiki?action=index;match=\ .(el|tar)(\.gz)%3F%24 Index of all pages http://www.cb1.com/~john/computing/emacs/lisp/index.html My emacs lisp collection http://blog.chinaunix.net/u/23408/showart_182372.html 配置GNU Emacs http://www.splode.com/users/friedman/software/emacs-lisp/index.html Software: Emacs Lisp 6.29 DONE use checkbox to split tasks IMPORTANT CLOSED: 2009-11-05 Thu 23:39 This feature is similar to TODO items, but is more lightweight. 6.29.1 test [2/3] [-] step1 [2/3] [X] step1.1 [X] step1.2 [] step1.3 [X] step2 [0/0] [X] step3 [1/1] [X] step3.1 6.29.2 test [66%] [X] step1 [100%] [X] step1.1 [X] step1.2 [X] step1.3 emacs file:///D:/ntemacs23/myemacs/My%20Dropbox/private_data/e... 41 of 65 2010-01-28 21:54 [X] step2 [0/0] [] step3 [0/1] [] step3.1 6.29.3 useful link http://orgmode.org/manual/Checkboxes.html#Checkboxes checkbox 6.30 DONE move to next heading same level: C-c C-f CLOSED: 2009-11-05 Thu 23:25 http://orgmode.org/manual/Motion.html#Motion Motion 6.31 DONE keystrokes: navigate other window CLOSED: 2009-06-20 星期六 15:21 scroll-other-window-down: C-M-S-v scroll-other-window: C-M-v 6.32 DONE keystrokes: Structural navigation CLOSED: 2009-06-20 星期六 15:18 Structural navigation keystrokes: M-C-a, M-C-e, M-( 6.33 DONE delete a line without copy IMPORTANT CLOSED: 2009-10-22 Thu 00:45 6.33.1 delete-line ;;alt+p j: delete line without copy (defun delete-line (&optional arg) (interactive "P") (delete-region (point) ;; It is better to move point to the other end of the kill ;; before killing. That way, in a read-only buffer, point ;; moves across the text that is copied to the kill ring. ;; The choice has no effect on undo now that undo records ;; the value of point from before the command was run. (progn (if arg emacs file:///D:/ntemacs23/myemacs/My%20Dropbox/private_data/e... 42 of 65 2010-01-28 21:54 (forward-visible-line (prefix-numeric-value arg)) (if (eobp) (signal 'end-of-buffer nil)) (let ((end (save-excursion (end-of-visible-line) (point)))) (if (or (save-excursion ;; If trailing whitespace is visible, ;; don't treat it as nothing. (unless show-trailing-whitespace (skip-chars-forward " \t" end)) (= (point) end)) (and kill-whole-line (bolp))) (forward-visible-line 1) (goto-char end)))) (point)))) (global-set-key [(meta p)(j)] 'delete-line) 6.33.2 useful link http://stackoverflow.com/questions/1257365/how-to-delete-a-region-of-text-in-emacs how to delete a region of text in emacs? 6.34 DONE 查找查找查找查找tab 键键键键 CLOSED: 2009-06-05 星期五 16:16 isearch-forward-regexp:tab 键(I)/ 空格键 6.35 DONE 使用使用使用使用tab 键键键键,设置为设置为设置为设置为4个空格个空格个空格个空格 CLOSED: 2009-07-01 星期三 14:56 (setq default-tab-width 4);; 设置tab 键为4个空格 (setq-default indent-tabs-mode nil);;force Emacs to indent with spaces, never with TABs http://notfaq.wordpress.com/2006/08/17/emacs-tab-vs-space/ Emacs — Tab vs. Space 6.36 DONE highlight lines that are too long CLOSED: 2009-07-05 星期日 20:18 (add-hook find-file-hooks (lambda () (font-lock-add-keywords nil '(("[\n]\\ {80\\}\\(.*\\)$" 1 font-lock-warning-face t))))) 6.36.1 useful link emacs file:///D:/ntemacs23/myemacs/My%20Dropbox/private_data/e... 43 of 65 2010-01-28 21:54 http://emacs-fu.blogspot.com/2008/12/highlighting-lines-that-are-too-long.html highlight lines that are too long http://emacs-fu.blogspot.com/2008/12/highlighting-todo-fixme-and-friends.html highlight "TODO", "FIXME" and friends 6.37 DONE count-matches: Print and return number of matches for regexp following point. CLOSED: 2009-06-14 星期日 00:02 6.38 DONE windows: balance-windows CLOSED: 2009-06-20 星期六 15:18 6.39 DONE emacs23, scale font: C-x C-+; C-x C-- CLOSED: 2009-11-09 Mon 23:59 6.39.1 useful link http://www.openweblog.com/users/hexmode/532156.html 6.40 DONE highlight all occurences of a word: M-x highlight-regexp CLOSED: 2009-11-08 Sun 17:58 M-x highlight-regexp M-x unhighlight-regexp M-x highlight-lines-matching-regexp http://stackoverflow.com/questions/385661/emacs-highlight-all-occurences-of-a-word Emacs, highlight all occurences of a word 6.41 DONE C-x C-o: delete-blank-lines CLOSED: 2009-11-06 Fri 01:26 I know it is quite basic, but extremely useful; delete several blank lines at once, or (when cursor on nonblank line) delete any immediately following blank lines. 6.42 DONE highlight change CLOSED: 2009-07-05 星期日 12:13 (global-highlight-changes 'passive);;record changes in passive way (global-set-key [(control c) (control c)] 'highlight-changes-mode);;toggle visibility emacs file:///D:/ntemacs23/myemacs/My%20Dropbox/private_data/e... 44 of 65 2010-01-28 21:54 (global-set-key [(control c) (control p)] 'highlight-changes-previous-change) (global-set-key [(control c) (control n)] 'highlight-changes-next-change) (set-face-foreground 'highlight-changes nil) (set-face-background 'highlight-changes "#c936ab") (set-face-foreground 'highlight-changes-delete nil) (set-face-background 'highlight-changes-delete "#686897") 6.42.1 useful link http://emacs-fu.blogspot.com/2009/05/tracking-changes.html tracking changes 6.43 DONE Natural Language: downcase-word, upcase-word, capitalize-word CLOSED: 2009-06-20 星期六 15:17 downcase-word: M-l upcase-word: M-u capitalize-word: M-c 6.44 DONE byte-compile-file: CompiledFile CLOSED: 2009-07-02 星期四 21:36 http://www.emacswiki.org/emacs/CompiledFile CompiledFile 6.45 DONE insert utc time CLOSED: 2009-07-02 星期四 21:38 (global-set-key [(meta p)(i)] 'my-insert-time) (defun my-insert-time() (interactive) (insert (format-time-string "<%Y-%m-%d %H:%M UTC +8>" (current-time))) (insert "\n") ) 6.46 DONE narrow region:C-x n n /C-x n w IMPORTANT CLOSED: 2009-06-13 星期六 23:21 6.46.1 useful link http://www.emacswiki.org/emacs/BasicNarrowing BasicNarrowing 6.47 DONE zap-to-char: kills from the current point to a character IMPORTANT emacs file:///D:/ntemacs23/myemacs/My%20Dropbox/private_data/e... 45 of 65 2010-01-28 21:54 CLOSED: 2009-06-13 星期六 23:12 M-z e: deletes all characters to the next occurence of “e”. C-u 2 M-z e: deletes all character to the second occurence of “e”. C– M-z e: deletes all characters to the previous occurence of “e”. C-u -4 M-z e: deletes all character to the fourth previous occurence of “e” 6.47.1 useful link http://www.emacswiki.org/emacs/ZapToChar#zap-to-char ZapToChar 6.48 DONE limited replace CLOSED: 2009-06-22 星期一 22:05 根据具体情况将Task, 修改成RmgTask/SystemTask 通过narrow editing 的方式 6.49 DONE see emacs version: M-x version CLOSED: 2009-11-11 Wed 17:04 6.50 DONE check whether current emacs is under native windows or cygwin: variable of system-type CLOSED: 2009-11-13 Fri 16:16 x11.el VS windows.el http://www.zvon.org/other/elisp/Output/SEC596.html Operating System Interface 6.51 DONE emacs-x11 Maximum frame CLOSED: 2009-11-13 Fri 16:17 6.51.1 useful link http://github.com/jmjeong/my-dot-emacs/blob/master/maxframe.el 6.52 DONE Don't show scroll bar in the left: (scroll-bar-mode nil) CLOSED: 2009-11-13 Fri 13:53 http://www.emacswiki.org/emacs/Micka%C3%ABlMenu emacs file:///D:/ntemacs23/myemacs/My%20Dropbox/private_data/e... 46 of 65 2010-01-28 21:54 6.53 DONE wrap for long line IMPORTANT CLOSED: 2009-11-15 Sun 05:25 (setq truncate-lines nil) (toggle-truncate-lines) ;; -—————————— separator ------------------------------- (add-hook 'org-mode-hook ;;don't truncate line in org-mode (lambda () (setq truncate-lines nil))) (add-hook 'w3m-mode-hook ;;don't truncate line in emacs-w3m mode (lambda () (setq truncate-lines nil))) 6.53.1 useful link http://www.stokebloke.com/wordpress/2008/04/24/emacs-line-wrapping/ http://osdir.com/ml/emacs-orgmode-gnu/2009-04/msg00618.html 6.54 DONE get file name for current buffer CLOSED: 2009-11-20 Fri 23:50 (define-key global-map (kbd "M-p f") 'show-current-filename) (defun show-current-filename() (interactive) (setq tmp filename (buffer-file-name)) (message tmp filename ) (kill-new tmp filename ) ) 6.55 DONE Don't truncate lines in w3m mode CLOSED: 2009-12-02 Wed 22:17 (defun lucky try () (interactive) (if (string= mode-name "Diff") (dos2unix) ) (if (string= mode-name "w3m") (toggle-truncate-lines) ) (if (string= mode-name "Org") (toggle-truncate-lines) ) ) 7 org-mode in emacs HARD IMPORTANT emacs file:///D:/ntemacs23/myemacs/My%20Dropbox/private_data/e... 47 of 65 2010-01-28 21:54 7.1 basic description M-x org-info 可看帮助 任务完成后要更新清单 看电视意味着“这段时间我浪费了也无所谓” 十岁原则。如果你能将学到的东西解释给一个十岁的孩子,让他听懂,你一定是学会了 马上就开始做最重要的事情 我的权利底线,哪些是我可以承诺的,哪些是我权利所不及的? 我的信息底线,哪些事情是我可以告诉对方的,哪些是不能说的? 不要对你不懂得东西大放厥词 那些等着万事俱备才去做的事情往往永远也没机会做。 7.2 org-mode tips A closed list for the day should represent the work you can do in a day. There are three main reason for not completing the lists. You are not working efficiently1. You have too much to do2. You are not leaving enough time Never take a break until you have started the next thing. 3. 7.3 总结总结总结总结 HARD EMACS 7.3.1 为了在为了在为了在为了在org-mode 中提高查找命中率中提高查找命中率中提高查找命中率中提高查找命中率, 注意利用大小写的不同注意利用大小写的不同注意利用大小写的不同注意利用大小写的不同 7.3.2 编写条目时编写条目时编写条目时编写条目时,注意标题结构。防止二义性注意标题结构。防止二义性注意标题结构。防止二义性注意标题结构。防止二义性 7.3.3 注意内容的前后排序顺序,提高按内容搜索的准确度注意内容的前后排序顺序,提高按内容搜索的准确度注意内容的前后排序顺序,提高按内容搜索的准确度注意内容的前后排序顺序,提高按内容搜索的准确度 7.3.4 todo 和和和和done 词条之间是总结或未标注的内容。一旦标为词条之间是总结或未标注的内容。一旦标为词条之间是总结或未标注的内容。一旦标为词条之间是总结或未标注的内容。一旦标为DONE 的记录就将不经常被查看,只作为的记录就将不经常被查看,只作为的记录就将不经常被查看,只作为的记录就将不经常被查看,只作为 知识库知识库知识库知识库 7.4 DONE table CLOSED: 2009-05-06 星期三 09:52 just start typing, e.g. |Name|Phone|Age RET |- TAB move the current column left M-LEFT/RIGHT kill the current column M-S-LEFT move the current row up/down M-UP/DOWN kill the current row or horizontal line M-S-UP insert hline below (C-u : above) current row C-c - sort lines in region C-c ^ Region cut rectangular region C-c C-x C-w copy rectangular region C-c C-x M-w paste rectangular region C-c C-x C-y spreadsheet = introduces a column formula, := a field formula. emacs file:///D:/ntemacs23/myemacs/My%20Dropbox/private_data/e... 48 of 65 2010-01-28 21:54 apply current column formula | = | set and eval column formula C-c = set and eval field formula C-u C-c = show line, column, formula reference C-c ? toggle coordinate grid C-c } re-apply all stored equations to current line C-c * re-apply all stored equations to entire table C-u C-c * Formulas are stored in a special line starting with `#+TBLFM:' directly below the table. C-c |: Convert the active region to table. C-c C-c: Re-align the table without moving the cursor http://orgmode.org/manual/Built_002din-table-editor.html#Built_002din-table-editor The built-in table editor C-c +:Sum the numbers in the current column M-x org-table-export:Export the table, by default as a TAB-separated file #+TBLFM: @5$1=vsum(@5$2..@5$4) Any line starting with `|-' is considered as a horizontal separator line 7.4.1 CANCELED table 的函数不对的函数不对的函数不对的函数不对 CLOSED: 2009-05-06 星期三 09:53 http://orgmode.org/manual/References.html#References References @I+1$1=18 7.5 DONE 设置设置设置设置org mode 的内嵌的内嵌的内嵌的内嵌css 样式样式样式样式 IMPORTANT CLOSED: 2009-04-22 Wed 22:33 7.5.1 basic description 在配置文件中,设置变量org-export-html-style 的值 (setq org-export-html-style "" ) 7.5.2 useful link http://www.gnu.org/software/emacs/manual/html_node/org/CSS-support.html CSS support 7.6 DONE 如何显示被如何显示被如何显示被如何显示被delegate 或或或或cancel 的工作的工作的工作的工作 ("c" todo #("DONE|DEFERRED|CANCELLED" 0 23 (face org-warning)) nil) 7.7 DONE 在在在在org-mode 中将某个中将某个中将某个中将某个entry 及其子记录向下降一级及其子记录向下降一级及其子记录向下降一级及其子记录向下降一级,或向上升一级或向上升一级或向上升一级或向上升一级 HARD alt+shift+left alt+shift+right 7.8 DONE 设置设置设置设置Entry 的优先级的优先级的优先级的优先级 shift+ 方向键 7.9 DONE 快捷键快捷键快捷键快捷键 到上级标题: `C-c C-u' C-c C-n:outline-next-visible-heading 到同级上一个标题: `C-c C-f' 到同级下一个标题: `C-c C-b' 用`C-c |' 来创建表格 C-c +: 求出当前列的总和 7.9.1 Moving subtrees C-c C-x A:Move the current entry to the Archive Sibling C-c C-x C-s:Archive the subtree starting at the cursor position 7.9.2 others C-c C-v:org-show-todo-tree C-c C-x b org-tree-to-indirect-buffer C-c ^ + t: org-sort, by time emacs file:///D:/ntemacs23/myemacs/My%20Dropbox/private_data/e... 50 of 65 2010-01-28 21:54 C-c < Insert a time stamp corresponding to the cursor date in the Calendar C-c C-z:org-add-note C-c / org-sparse-tree C-c C-w org-refile 7.10 DONE 如何回顾上周做过什么如何回顾上周做过什么如何回顾上周做过什么如何回顾上周做过什么 C-c a L 7.11 DONE 输入当前时间输入当前时间输入当前时间输入当前时间,不仅有日期不仅有日期不仅有日期不仅有日期,还有还有还有还有HH-MM COMPUTER 最后是自动加上时间曜 自定义函数(insert (format-time-string "<%Y-%m-%d %H:%M>" (current-time))) 7.12 DONE 标记出标记出标记出标记出done 事件和事件和事件和事件和abort 事件事件事件事件 #+SEQ TODO: TODO | DONE CANCELED (setq org-todo-keyword-faces '(("TODO" . org-warning) ("DEFERRED" . shadow) ("CANCELED" . (:foreground "blue" :weight bold)))) 7.13 DONE 设置设置设置设置org-mode 中中中中tag 对齐的列号对齐的列号对齐的列号对齐的列号 (setq org-tags-column 100);; 设置对齐位置 C-u C-c C-c:tag 全部对齐 7.14 DONE 定制输入定制输入定制输入定制输入useful link 等的宏等的宏等的宏等的宏 按键操作,宏比defun 简单得多 7.15 DONE 在在在在org-mode 下下下下,定义插入定义插入定义插入定义插入spliter 的快捷键的快捷键的快捷键的快捷键 ;; 插入字符串: ** -—————————— spliter ------------------------------- (global-set-key [(meta p)(s)] 'my-insert-spliter) (defun my-insert-spliter() (interactive) (move-beginning-of-line nil) (insert "** -—————————— spliter -——————————\n") ) 7.16 DONE 如何对一块数据按如何对一块数据按如何对一块数据按如何对一块数据按tab 键键键键 COMPUTER (yas/Expand) 7.17 CANCELED clock CLOSED: 2009-05-06 星期三 09:53 emacs file:///D:/ntemacs23/myemacs/My%20Dropbox/private_data/e... 51 of 65 2010-01-28 21:54 C-c C-x C-i:Start the clock on the current item (clock-in) C-c C-x C-o:Stop the clock (clock-out) C-c C-x C-j:Jump to the entry that contains the currently running clock. 7.18 useful link http://orgmode.org/worg/org-tutorials/index.php Org tutorials 7.19 DONE 导出第三级某个结点时导出第三级某个结点时导出第三级某个结点时导出第三级某个结点时, html 没有目录信息没有目录信息没有目录信息没有目录信息:org-export-headline-levels 的默认的默认的默认的默认 值为值为值为值为3, 太小太小太小太小 IMPORTANT CLOSED: 2009-04-20 Mon 01:13 7.20 DONE org-mode 中中中中tag 对齐对齐对齐对齐 C-c C-c Enter 7.21 DONE [#A] org mode 导出的导出的导出的导出的html 没有换行没有换行没有换行没有换行 CLOSED: 2009-04-22 Wed 22:02 解决办法: 在 org 文件最前面加上:#+OPTIONS: "\n:t" 就可以了,还有更多的选项,可以看 org-mode 的info 7.21.1 useful link http://www.linuxsir.org/bbs/thread325069.html emacs org-mode org-export-as-html 换行 7.22 DONE org mode export table with css CLOSED: 2009-09-04 星期五 22:43 Check out section 12.6.4 (Tables in HTML export) of the Org manual. 7.22.1 useful link http://orgmode.org/manual/Tables-in-HTML-export.html 12.6 HTML export http://www.w3schools.com/html/default.asp HTML Tutorial 7.23 DONE 将将将将org-mode 中的中的中的中的table 不改变不改变不改变不改变layout 的前提下的前提下的前提下的前提下,复制到复制到复制到复制到email 中中中中 IMPORTANT emacs file:///D:/ntemacs23/myemacs/My%20Dropbox/private_data/e... 52 of 65 2010-01-28 21:54 CLOSED: 2009-08-30 星期日 15:29 使用固定长度的字体 7.24 DONE org-mode 输入的输入的输入的输入的table 带表头带表头带表头带表头 CLOSED: 2009-07-02 星期四 21:46 simply type |country|capital||- and I get: country capital http://emacs-fu.blogspot.com/2009/05/writing-and-blogging-with-org-mode.html emacs fun 7.25 DONE org-mode 中字体加粗中字体加粗中字体加粗中字体加粗,加下划线加下划线加下划线加下划线 CLOSED: 2009-07-02 星期四 21:54 This is bold italics underline Emacs-Fu http://emacs-fu.blogspot.com/2009/05/writing-and-blogging-with-org-mode.html emacs fun 8 emacs-x11 HARD IMPORTANT 8.1 DONE change current file's ACL to allow editing IMPORTANT CLOSED: 2009-11-20 Fri 23:50 (global-set-key [f7] 'chmod file ) ;; sample: chmod o+rw 1.txt (defun chmod file () (interactive) (setq short filename (buffer-name)) (setq chmod command (concat "chmod o+rw " short filename )) (shell-command chmod command ) (revert-buffer t t) (message chmod command ) ) 8.1.1 useful link http://www.emacswiki.org/emacs/FileModes FileModes http://www.redhat.com/docs/manuals/linux/RHL-7.3-Manual/ref-guide/s1-users-groups-private- groups.html User Private Groups emacs file:///D:/ntemacs23/myemacs/My%20Dropbox/private_data/e... 53 of 65 2010-01-28 21:54 8.2 CANCELED emacs-x11 设置设置设置设置ACL CLOSED: 2009-11-20 Fri 23:52 8.2.1 basic description If the current user doesn't show up in /etc/passwd, it's group will be named 'mkpasswd'. Otherwise, if the login group of the current user isn't in /etc/group, it will be named 'mkgroup'. Otherwise a group not in /etc/group will be shown as '????????' and a user not in /etc/passwd will be shown as "????????". No root user in cygwin 8.2.2 sample of /etc/passwd SYSTEM:*:18:544:,S-1-5-18:: LocalService:*:19:544:U-NT AUTHORITY\LocalService,S-1-5-19:: NetworkService:*:20:544:U-NT AUTHORITY\NetworkService,S-1-5-20:: Administrators:*:544:544:,S-1-5-32-544:: ACTUser:unused:1015:513:Application Center Test 甯愭埛,U- CNRDZHANGD1L1C\ACTUser,S-1-5-21-2488379460-1461340992-2942758333-1015:/home /ACTUser:/bin/bash Administrator:unused:500:513:U-CNRDZHANGD1L1C\Administrator,S- 1-5-21-2488379460-1461340992-2942758333-500:/home/Administrator:/bin/bash ASPNET:unused:1004:513:ASP.NET Machine Account,U-CNRDZHANGD1L1C\ASPNET,S- 1-5-21-2488379460-1461340992-2942758333-1004:/home/ASPNET:/bin/bash Guest:unused:501:513:U-CNRDZHANGD1L1C\Guest,S- 1-5-21-2488379460-1461340992-2942758333-501:/home/Guest:/bin/bash HelpAssistant:unused:1013:513:Remote Desktop Help Assistant Account,U- CNRDZHANGD1L1C\HelpAssistant,S- 1-5-21-2488379460-1461340992-2942758333-1013:/home/HelpAssistant:/bin/bash SQLDebugger:unused:1016:513:SQLDebugger,U-CNRDZHANGD1L1C\SQLDebugger,S- 1-5-21-2488379460-1461340992-2942758333-1016:/home/SQLDebugger:/bin/bash SUPPORT 388945a0 :unused:1002:513:CN=Microsoft Corporation,L=Redmond,S=Washington,C=US,U-CNRDZHANGD1L1C\SUPPORT 388945a0 ,S- 1-5-21-2488379460-1461340992-2942758333-1002:/home/SUPPORT 388945a0 :/bin/bash _vmwareuser __:unused:1018:513:_ vmwareuser __,U-CNRDZHANGD1L1C_ vmwareuser __,S- 1-5-21-2488379460-1461340992-2942758333-1018:/home/_ vmwareuser __:/bin/bash zhangd1:unused:930472:10545:zhangd1,U-CORP\zhangd1,S- 1-5-21-854245398-1972579041-362288127-920472:: 8.2.3 sample of /etc/group SYSTEM:S-1-5-18:18: Administrators:S-1-5-32-544:544: Backup Operators:S-1-5-32-551:551: Guests:S-1-5-32-546:546: Network Configuration Operators:S-1-5-32-556:556: emacs file:///D:/ntemacs23/myemacs/My%20Dropbox/private_data/e... 54 of 65 2010-01-28 21:54 Power Users:S-1-5-32-547:547: Remote Desktop Users:S-1-5-32-555:555: Replicator:S-1-5-32-552:552: Users:S-1-5-32-545:545: ConfigMgr Remote Control Users:S-1-5-21-2488379460-1461340992-2942758333-1010:1010: Debugger Users:S-1-5-21-2488379460-1461340992-2942758333-1009:1009: HelpServicesGroup:S-1-5-21-2488379460-1461340992-2942758333-1001:1001: Offer Remote Assistance Helpers:S-1-5-21-2488379460-1461340992-2942758333-1011:1011: VS Developers:S-1-5-21-2488379460-1461340992-2942758333-1014:1014: _vmware __:S-1-5-21-2488379460-1461340992-2942758333-1017:1017: None:S-1-5-21-2488379460-1461340992-2942758333-513:513: denny-group:S-1-5-32-544:10545: 8.2.4 useful link http://www.ee.adfa.edu.au/staff/hrp/webDesignHelp/cygwin-ug-net-nochunks.html#NTSEC- RELEASE1.3.20 Special values of user and group ids http://cygwin.com/ml/cygwin/2003-08/msg00937.html RE: How to add root user? 9 canceled 9.1 CANCELED 将将将将tab 换成四个空格键换成四个空格键换成四个空格键换成四个空格键 CLOSED: 2009-05-03 星期日 23:32 python 代码贴到wiki 中显示不对 9.2 CANCELED [#A] 使用使用使用使用erc CLOSED: 2009-04-27 Mon 22:45 貌似irc.freenode.net 服务器不可访问 9.2.1 useful link http://ftp.gnu.org/gnu/erc/ http://www.emacswiki.org/emacs/?action=browse;oldid=EmacsIRCClient;id=ERC ERC 9.2.2 make client process failed CLOSED: 2009-04-27 Mon 22:45 Debugger entered–Lisp error: (file-error "make client process failed" "connection refused" :name "erc-irc.freenode.net-6667" :buffer nil :host "irc.freenode.net" :service 6667) make-network-process(:name "erc-irc.freenode.net-6667" :buffer nil :host "irc.freenode.net" :service 6667) emacs file:///D:/ntemacs23/myemacs/My%20Dropbox/private_data/e... 55 of 65 2010-01-28 21:54 open-network-stream("erc-irc.freenode.net-6667" nil "irc.freenode.net" 6667) erc-server-connect("irc.freenode.net" 6667 #) erc-open("irc.freenode.net" 6667 "zhangd1" "unknown" t "password") erc(:server "irc.freenode.net" :port 6667 :nick "zhangd1" :password "password") call-interactively(erc) execute-extended-command(nil) call-interactively(execute-extended-command) 9.2.3 使用使用使用使用Bersirc 即即即即windows 的的的的irc client http://www.ircreviews.org/clients/bersirc.html Bersirc 9.2.4 如何注册如何注册如何注册如何注册irc 用户用户用户用户 9.3 CANCELED ses:simple emacs spreadsheet CLOSED: 2009-05-09 星期六 23:03 9.3.1 useful link http://web.archive.org/web/20050306010917/home.comcast.net/~jyavner/ses/ SES21 - Simple Emacs Spreadsheet 9.4 CANCELED 对对对对todo.org 文件进行有效的文件进行有效的文件进行有效的文件进行有效的backup 和和和和diff CLOSED: 2009-04-24 Fri 17:12 9.5 CANCELED 使用使用使用使用emerge CLOSED: 2009-04-24 Fri 17:13 9.6 CANCELED org-mode 事件记录一旦移动事件记录一旦移动事件记录一旦移动事件记录一旦移动archive 后后后后,如何查看如何查看如何查看如何查看 CLOSED: 2009-04-24 Fri 17:13 9.7 CANCELED po 模式翻译有什么好处模式翻译有什么好处模式翻译有什么好处模式翻译有什么好处 CLOSED: 2009-04-24 Fri 17:05 9.8 CANCELED 用用用用bibtex 管理文献管理文献管理文献管理文献 CLOSED: 2009-04-24 Fri 17:05 emacs file:///D:/ntemacs23/myemacs/My%20Dropbox/private_data/e... 56 of 65 2010-01-28 21:54 9.9 CANCELED 使用使用使用使用emacs 作为作为作为作为ftp 的客户端的客户端的客户端的客户端 CLOSED: 2009-04-24 Fri 17:05 ange-ftp 9.9.1 useful link http://www.gnu.org/software/emacs/windows/Network-access.html#Network-access How do I use FTP within Emacs? 9.10 CANCELED [#A] org mode 生成生成生成生成html 中中中中–和和和和-的区别很不明显的区别很不明显的区别很不明显的区别很不明显 CLOSED: 2009-04-24 Fri 17:03 9.11 CANCELED [#A] 去掉去掉去掉去掉emacs 自动删除空白的功能自动删除空白的功能自动删除空白的功能自动删除空白的功能,避免避免避免避免svn 显示大量没有意义的显示大量没有意义的显示大量没有意义的显示大量没有意义的diff unable to reproduce the problem 9.12 CANCELED DictEm :a Dictionary client CLOSED: 2009-04-24 Fri 17:10 9.12.1 useful link http://sourceforge.net/projects/dictem/ DictEm is an extremely customizable Dictionary client for (X)Emacs. 9.13 CANCELED 将将将将org-mode 的内容导出成的内容导出成的内容导出成的内容导出成pdf CLOSED: 2009-04-24 Fri 17:19 通过pdfcreator workaround 9.14 CANCELED bury-buffer 是做什么的是做什么的是做什么的是做什么的 CLOSED: 2009-04-24 Fri 17:11 9.15 CANCELED 规划时间和规划时间和规划时间和规划时间和deadline 有啥意义有啥意义有啥意义有啥意义 CLOSED: 2009-04-24 Fri 17:11 C-c C-s 规划时间(只建议用于约会或非此时不可的情形) emacs file:///D:/ntemacs23/myemacs/My%20Dropbox/private_data/e... 57 of 65 2010-01-28 21:54 C-c C-d 设定最后期限(deadline) 9.16 CANCELED org mode 中按中按中按中按C- C-c 输入输入输入输入tag 时时时时, 有些地方没有对齐有些地方没有对齐有些地方没有对齐有些地方没有对齐 CLOSED: 2009-05-03 星期日 23:33 感悟 — life 9.17 CANCELED thinks 取消,意义不大 9.17.1 basic thinks.el is a little bit of silliness inspired by the think bubbles you see in cartoons. 功能是:添加 . o O 9.17.2 useful link http://www.davep.org/emacs/ www.davep.org 9.18 CANCELED Newsticker 取消,意义不大 9.18.1 basic Newsticker provides a newsticker for Emacs. newsticker.el can display news items of news (RSS, Atom) feeds 9.18.2 useful link http://www.emacswiki.org/cgi-bin/wiki/NewsTicker NewsTicker 9.19 CANCELED 使用使用使用使用emacs 的的的的emms 听音乐听音乐听音乐听音乐 9.19.1 basic emms 要调用音乐播放工具才能播放音乐,一般要安装mpg321 ;同时建议安装mp3info ,以 显示 mp3 音乐文件的信息 9.19.2 useful link http://blog.chinaunix.net/u/18537/showart_133197.html Emacs 播放MP3 http://www.gnu.org/software/emms/ emacs file:///D:/ntemacs23/myemacs/My%20Dropbox/private_data/e... 58 of 65 2010-01-28 21:54 EMMS–Emacs Multimedia System http://pluskid.lifegoo.com/wiki/EMMS.html The Emacs Multimedia System http://www.tanstaafl.cn/Home/EmacsEmms.html TANSTAAFL – 使用emms 来听音乐 http://www.emacswiki.org/emacs/EMMS emmswiki 9.20 CANCELED 写写写写wiki 有啥好处有啥好处有啥好处有啥好处 9.21 CANCELED 使用使用使用使用Ebrowse 查看查看查看查看C++ 代码代码代码代码 Ebrowse: (ebrowse). A C++ class browser for Emacs. 9.22 CANCELED 配置配置配置配置emacs 使其可以像使其可以像使其可以像使其可以像sourceinsight 那样查看代码那样查看代码那样查看代码那样查看代码 显示当前类的数据成员和函数成员 函数的调用关系 9.23 CANCELED org-mode 存档数据如何存档数据如何存档数据如何存档数据如何hide 起来起来起来起来,避免影响打开的性能避免影响打开的性能避免影响打开的性能避免影响打开的性能 增加级数,从而减少一级下entry 的个数。即增加树深,避免低宽树 9.24 CANCELED 使用使用使用使用emacs 上上上上ssh, 即即即即putty 功能功能功能功能 9.24.1 useful link http://ubuntuforums.org/showthread.php?t=678230 SSH emacs 9.25 CANCELED @ 没有办法开始没有办法开始没有办法开始没有办法开始region 的选中的选中的选中的选中 重启后没有出现了 9.26 CANCELED 打开打开打开打开samba 的文件时的文件时的文件时的文件时,emacs 会会会会crash \\10.32.171.205\alldisk\tmp\upgradeCLI–ZhouHang\upgrade.py ruby->hideshow package 引起的 9.27 CANCELED 在在在在org mode 按按按按F11 会导致当前会导致当前会导致当前会导致当前mode hang 住住住住 9.28 CANCELED 防止自动换行防止自动换行防止自动换行防止自动换行 放弃,意义不大 9.29 CANCELED 自动更新时间自动更新时间自动更新时间自动更新时间 emacs file:///D:/ntemacs23/myemacs/My%20Dropbox/private_data/e... 59 of 65 2010-01-28 21:54 意义不大,放弃 9.29.1 简介简介简介简介 有个宏包, html-helper-mode.el, 将这 个时间放在特殊的注释语句内, 每次保存时就会自动更新. 与我myemacs.el 中的(add-hook 'write-file-hooks 'auto-update-modifytime) 功能类似 9.30 CANCELED 查找支持查找支持查找支持查找支持rhtml 的的的的mode CLOSED: 2009-06-05 星期五 16:16 使用html 格式来workaround 9.31 CANCELED 设置设置设置设置eshell 的快捷键的快捷键的快捷键的快捷键 CLOSED: 2009-07-01 星期三 17:25 ledger.exe -f filebat.ledger -d "t&l<4" bal 9.32 CANCELED eshell 中自己写的中自己写的中自己写的中自己写的python 脚本不能运行脚本不能运行脚本不能运行脚本不能运行:Permission denied IMPORTANT CLOSED: 2009-08-30 星期日 00:41 d:/ntemacs23/myemacs/data/ledgerrange.py 9.32.1 useful link http://www.linuxforums.org/forum/suse-linux-help/58330-bash-test-permission-denied.html bash: ./test: Permission denied 9.33 CANCELED 删除行尾空格删除行尾空格删除行尾空格删除行尾空格:delete-trailing-whitespace CLOSED: 2009-07-01 星期三 17:25 9.34 CANCELED tabbar-mode 启动后,启动后,启动后,启动后,flyspell-mode 的提示窗口显示不出来的提示窗口显示不出来的提示窗口显示不出来的提示窗口显示不出来 CLOSED: 2009-08-31 星期一 22:35 tabbar-mode 的作用不大 9.35 CANCELED 设置设置设置设置org-mode 的导出目录的导出目录的导出目录的导出目录 CLOSED: 2009-08-31 星期一 23:49 emacs file:///D:/ntemacs23/myemacs/My%20Dropbox/private_data/e... 60 of 65 2010-01-28 21:54 9.36 CANCELED 加快加快加快加快emacs 启动速度启动速度启动速度启动速度 CLOSED: 2009-11-10 Tue 00:05 9.37 CANCELED emacs screencasts CLOSED: 2009-11-10 Tue 00:05 http://www.emacswiki.org/cgi-bin/wiki/EmacsScreencasts EmacsScreencasts 9.38 CANCELED 使用使用使用使用session 工具工具工具工具 CLOSED: 2009-11-11 Wed 14:19 9.38.1 useful link http://www.emacswiki.org/emacs/EmacsSession EmacsSession http://emacs-session.sourceforge.net/ Session Management for Emacs 9.39 CANCELED 使用使用使用使用ESS – Emacs Speaks Statistics CLOSED: 2009-11-11 Wed 14:20 http://www.emacswiki.org/cgi-bin/wiki/EmacsSpeaksStatistics Emacs Speaks Statistics 9.40 CANCELED [#A] emacs 中中中中txt 的回车,在的回车,在的回车,在的回车,在notepad 没有显示出来没有显示出来没有显示出来没有显示出来 CLOSED: 2009-08-31 星期一 23:51 emacs 是0a, windows 是0d0a 9.41 CANCELED Show something in the top CLOSED: 2009-11-13 Fri 16:18 9.42 CANCELED show diary notification in Chinese CLOSED: 2009-11-13 Fri 14:11 9.43 CANCELED [emacs-x11] svn-status-commit doesn't work, with no error emacs file:///D:/ntemacs23/myemacs/My%20Dropbox/private_data/e... 61 of 65 2010-01-28 21:54 CLOSED: 2009-11-14 Sat 08:03 9.43.1 useful link http://stackoverflow.com/questions/726274/svn-for-emacs-how-do-you-set-author-name-and- save-password svn for emacs: how do you set author name and save password 9.44 CANCELED svn-status-update 错误:错误:错误:错误:svn failed This client is too old to work with working copy '.' CLOSED: 2009-11-15 Sun 05:28 9.45 CANCELED [emacs-x11] w3m redirect google to google.jp CLOSED: 2009-11-22 Sun 22:36 http://www.google.com/ncr doesn't help 9.46 CANCELED [emacs-x11] set fonts IMPORTANT CLOSED: 2009-11-22 Sun 22:36 Only minimal fonts will be installed after the upgrade. Font packages are now named font-- Some packages dependencies have not yet been updated for the fonts they require, so you may need to manually install the needed fonts. For example, to provide the font emacs wants to use by default you will probably want to install font-adobe-dpi75 (or font-adobe-dpi100 if you like large fonts). This package provides the courier, helvetica, new century schoolbook and times font families. The lucida font family is provided by the package font-bh-dpi75 (or font-bh-dpi100). The monospaced version, lucida typewriter is provided by the package font-bh-lucidatypewriter-dpi75 (or font-bh-lucidatypewriter-dpi100). Note that after installing fonts you will need to restart the X server or run xset fp default; xset fp rehash to make the new fonts available 9.46.1 useful link emacs file:///D:/ntemacs23/myemacs/My%20Dropbox/private_data/e... 62 of 65 2010-01-28 21:54 http://x.cygwin.com/docs/faq/cygwin-x-faq.html#general http://x.cygwin.com/docs/faq/cygwin-x-faq.html#q-where-are-my-fonts Cygwin/X FAQ ;; -—————————— separator ------------------------------- 9.47 CANCELED Input character of s automatically CLOSED: 2009-11-22 Sun 22:36 9.48 CANCELED 安装使用安装使用安装使用安装使用w3m HARD CLOSED: 2009-12-02 Wed 22:16 cygwin 中安装w3m 即可 9.48.1 basic description R: Reload the current page TAB: Move the point to the next anchor. B: Move back to the previous page in the history. N: Move forward to the next page in the history. c: Display the url of the current page and put it into `kill-ring'. S: Query to the search engine a word. s: Display the history of pages you have visited in the session. C-c C-t Create a copy of the current page as a new session. . :Shift to the left , :Shift to the right C-c C-p: (w3m-previous-buffer) C-c C-n:(w3m-next-buffer) M: Display the current page using the external browser. u: Display the url under point and put it into `kill-ring'. C-c C-s: (w3m-select-buffer) G: Visit the web page in a new session. Display the page of the link in a new session. 9.48.2 TODO how to open new buffer, without leaving current buffer 9.48.3 TODO how to close one w3m buffer, then go to another w3m buffer 9.48.4 TODO how to the title of current page 9.48.5 TODO how to show height percentage in current page 9.48.6 DONE Why browse the Web in Emacs CLOSED: 2009-11-22 Sun 22:45 emacs file:///D:/ntemacs23/myemacs/My%20Dropbox/private_data/e... 63 of 65 2010-01-28 21:54 9.48.6.1 Browsing is faster and less distracting 9.48.6.2 You can integrate it into your work 9.48.6.3 You can customize everything 9.48.6.4 You're safe from browser exploits 9.48.6.5 You need less memory 9.48.6.6 useful link http://sachachua.com/wp/2008/08/12/why-browse-the-web-in-emacs/ Why browse the Web in Emacs? 9.48.7 DONE how to switch buffer CLOSED: 2009-11-22 Sun 22:32 C-c C-p 9.48.8 install 9.48.8.1 Imlib2 basic description Imlib 2 is the successor to Imlib. It is NOT a newer version - it is a completely new library. Imlib 2 does the following: Load image files from disk in one of many formats Save images to disk in one of many formats Render image data onto other images Render images to an X-Windows drawable Produce pixmaps and pixmap masks of Images Apply filters to images Rotate images Accept RGBA Data for images Scale images Alpha blend Images on other images or drawables Apply color correction and modification tables and factors to images Render images onto images with color correction and modification tables Render truetype anti-aliased text Render truetype anti-aliased text at any angle Render anti-aliased lines Render rectangles Render linear multi-colored gradients Cache data intelligently for maximum performance Allocate colors automatically emacs file:///D:/ntemacs23/myemacs/My%20Dropbox/private_data/e... 64 of 65 2010-01-28 21:54 Allow full control over caching and color allocation Provide highly optimized MMX assembly for core routines Provide plug-in filter interface Provide on-the-fly runtime plug-in image loading and saving interface Fastest image compositing, rendering and manipulation library for X useful link http://docs.enlightenment.org/api/imlib2/html/ Imlib2 Library Documentation 9.48.8.2 compface/uncompface uncompface – compress and expand 48x48x1 face image files useful link http://linux.die.net/man/1/uncompface uncompface(1) - Linux man page 9.48.8.3 gdkpixbuf 9.48.9 useful link http://www.cnblogs.com/papam/archive/2009/08/26/1554726.html Emacs w3m 配置 http://sourceforge.net/projects/w3m/files/ emacs-w3m http://www.emacswiki.org/emacs/emacs-w3m emacs-w3m http://emacs-w3m.namazu.org/ml/msg07882.html emacs-w3m 1.4.4 is released http://emacs-w3m.namazu.org/#download Emacs-w3m, a simple Emacs interface to w3m. http://www.idcnews.net/html/edu/linux/20070101/282205.html emacs-w3m 配置说明 Author: Denny Zhang(filebat) Date: 2010-01-28 21:54:32 HTML generated by org-mode 6.06b in emacs 23 emacs file:///D:/ntemacs23/myemacs/My%20Dropbox/private_data/e... 65 of 65 2010-01-28 21:54
还剩64页未读

继续阅读

下载pdf到电脑,查找使用更方便

pdf的实际排版效果,会与网站的显示效果略有不同!!

需要 20 金币 [ 分享pdf获得金币 ] 4 人已下载

下载pdf

pdf贡献者

mumu

贡献于2011-05-22

下载需要 20 金币 [金币充值 ]
亲,您也可以通过 分享原创pdf 来获得金币奖励!
下载pdf