
Emacs
文章平均质量分 77
ryuali2010
这个作者很懒,什么都没留下…
展开
-
Key Bindings in Emacs
Keystrokes are associated with commands via key bindings.you can access those command don't have bindings by typing M-x command-name Enter.key-map is a collection of key bindings.Global-mapis th原创 2012-08-24 13:18:11 · 706 阅读 · 0 评论 -
Emacs org mode --Hyperlinks
link formatOrg will recognize plain URL-like links and activate them as clickable links.[[link][description]] or alternatively [[link]]C-c C-l to update the linkorg-> Hyperli原创 2012-09-03 22:03:20 · 555 阅读 · 0 评论 -
Emacs org-mode
First-level headlines begin with one star; second-level headlines begin with two stars, and so on.In org-mode, TODO items are always headlines. I entered a TODO item for "Start new org file for tuto原创 2012-09-02 21:32:07 · 669 阅读 · 0 评论 -
w3m 进行网页浏览
Emacs-w3m, a simple Emacs interface to w3m. 在它的configure中点击info manual会进入一个比较详细介绍它的教程w3m本身是一个用于浏览网页的程序,安装方式就是 $ sudo apt-get install w3m,而如果想让它能够在Emacs中运行的话,我们就需要用到它与Emacs的接口程序Emacs-w3m其实下面的整个安装过程原创 2012-08-24 09:40:00 · 985 阅读 · 0 评论 -
find / ls / grep /Emacs regexp 区别 及Meta
1:文件名的生成在Linux中有很多适用文件作为命令参数,我们可以通过通配符进行文件名的生成。注意[...]形式,是取出其所列范围中的一个,然后只要符合就行。注意ls / find 与 grep 中的通配符是有区别的,因为前两个命令都是针对文件名 而grep是针对的文件中内容的匹配。下面这个列表是针对文件名匹配的时候的匹配模式* 在文件名匹配表示的是匹配任何数量的字符或字符串,而不原创 2012-08-15 18:41:43 · 1427 阅读 · 0 评论 -
Customize lisp program
Defining Functionskeep track of the number of words in a paper or story you are writing. Emacs has no built-in way of counting the number of words in a buffer, so we'll write a Lisp function that do原创 2012-08-24 19:45:36 · 501 阅读 · 0 评论 -
Emacs org mode -- table
horizontal line : |-----+---+---+---+-------+---+---|‘|’ is the column separator,A table is re-aligned automatically each time you press or or C-c C-c inside the table. The indentation of the原创 2012-09-03 22:01:14 · 2182 阅读 · 0 评论 -
Emacs
MinibufferC-x ^ make it taller in the normal fashioncompletion commands in minibuffer TAB/SPC/RET/?? (minibuffer-list-completions)TAB (minibuffer-complete).SPC原创 2012-07-18 13:40:09 · 641 阅读 · 0 评论 -
windows中emacs+ slime+ sbcl 配置
折腾我这么多天,终于把这个环境给弄好了,主要是刚开始完全没有头绪,如今发现下面的描述,真是看的人郁闷啊,让我情何以堪。如此简单却让我纠结了好几天,刚开始一直用emacs来编写,但是到了数组那一章,当用到make-array 的时候他就是报错说:没有这个函数,我当时就想肯定是我什么地方没有设置对,或者其他原因,因为这个是函数的问题,应该是哪个包没有包含进来,最终我在网上看到说要用emacs+sbcl原创 2012-07-18 13:36:36 · 4026 阅读 · 1 评论 -
浅谈lisp与shell中转义字符和正则表达 (一)
转义本身包含两个层次的含义:特殊字符--> 普通字符 普通字符-->具有特殊含义。转义字符为\具有特殊含义的元字符"" "$" "\" "|" "&" "*" "?" ,可以通过转义字符\,单引号,双引号使它去掉特殊含义。普通字符通过转义字符具有特殊含义,\n 表换行。\e 表esc字符对于string的值,它会在碰见\的时候,将有特殊含义的字符转义为一原创 2012-08-15 18:43:20 · 2509 阅读 · 0 评论 -
Emace 文本操作
<!--@page {margin:2cm}p {margin-bottom:0.21cm}-->编辑器并不会对某个文件本身编辑,而是先放到临时缓冲区中。在通知保存缓冲区之前原始文件不会变。通常缓冲区名字跟文件名字一样,但是也有一些特殊缓冲区*scratch*临时性辅助缓冲区,有点像草稿;*help*显示帮助信息。编辑模式:一个缓冲区只能有一种主模式,在原创 2012-08-20 16:16:32 · 1171 阅读 · 0 评论 -
Yasnippet
YASnippet is a template system for Emacs. It allows you to type an abbreviation and automatically expand it into function templates. Bundled language templates includes: C, C++, C#, Perl, Python, Ruby原创 2012-09-02 20:58:18 · 714 阅读 · 0 评论 -
issue in Emacs24
1:Currently CEDET issues a warning “Warning: cedet-called-interactively-p called with 0 arguments, but requires 1”, which can be suppressed by adding (setq byte-compile-warnings nil) in your .emacs原创 2012-09-08 10:59:11 · 545 阅读 · 0 评论 -
Emacs -- stackoverflow
1: 删除空行M-x flush-lines ^$ delete all the blank line in bufferM-x replace-regexp RET ^ C-q C-j $ RET RET delete multiple line to single line in buffer2: add auto-complete to html-mode原创 2012-09-06 21:16:34 · 563 阅读 · 0 评论 -
.emacs
(custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; I原创 2012-09-02 09:39:55 · 844 阅读 · 0 评论 -
Regexp -WiKi
字符描述\将下一个字符标记为一个特殊字符、或一个原义字符、或一个向后引用、或一个八进制转义符。例如,“n”匹配字符“n”。“\n”匹配一个换行符。串行“\\”匹配“\”而“\(”则匹配“(”。^匹配输入字符串的开始位置。如果设置了RegExp对象的Multiline属性,^也匹配“\n”或“\r”之后的位置。$匹配输入字符串的结束位置。如果设置了转载 2012-08-25 22:22:55 · 498 阅读 · 0 评论 -
Regexp
Remember that shell meta-characters are expanded before the shell passes the arguments to the program. To prevent this expansion, the special characters in a regular expression must be quoted when pas原创 2012-08-25 21:52:59 · 398 阅读 · 0 评论 -
Meta-Character and regexp
Regular expressions use meta-characters. The shells also have meta-characters.Meta-characters are simply characters that have a special meaning.The problem occurs when you want to use a regular expres原创 2012-08-25 18:55:54 · 697 阅读 · 0 评论 -
浅谈lisp与shell中转义字符和正则表达 (二)
正则表达式:我们应该也都了解一些正则表达式在Unix shell中的用法,但是还是有点区别,it is similar to those used by the language Perl, editors like ed and vi and Unix software tools like lex and grep.program.* 在Emacs中表示以program开头的程序,而在Un原创 2012-08-25 10:47:21 · 2686 阅读 · 0 评论 -
Emacs bookmarks
Bookmarks provide a convenient way of marking your place in a file, a place you can easily return towhen you create a bookmark, Emacs creates a bookmark file in your home directory. called .emacs.原创 2012-08-21 17:29:15 · 988 阅读 · 0 评论 -
Emacs language mode
如果你定义的文件后缀类型不存在的话,你可以通过下面方式设置 1:在附录B中查最右边一列,找到它对应的需要调用的方法。 2:通过.emacs文件来告诉Emacs当遇到这种后缀文件时,自动加载相应的程序包。 你需要邪写入两行进行定制,首先用autoload方法,告诉Emacs去哪找那些它现在还不知道的命令,因为这个命令相当与把方法跟相应的包关联起来了。所以当我们输入这个方法以后相应的原创 2012-08-22 09:23:05 · 2128 阅读 · 0 评论 -
Emacs 查找与替换
查找默认情况下查找是不区分大小写的,当时如果你输入了一个以上大写字母的话,就区分大小写了,因为它感觉你在乎大小写。递增查找C-s -> mini buffer 会出现I-search ->输入你想查找的单词,随着你输入字符增多递增高亮 -> 找到所要单词,键入enter -> C-s 命令可以切换单词的位置C-s Isearch-forward 从光标位置向前(朝文件尾方向原创 2012-08-20 18:59:47 · 18434 阅读 · 0 评论 -
Emacs Frame and buffer
One of the most universally features of Emacs is the ability to edit multiple buffers at once and to display more than one buffer using windows and frames.Conceptually, Emacs is different from most原创 2012-08-21 13:24:00 · 1954 阅读 · 0 评论 -
Ispell in Emacs
Ispell-bufferIspell-buffer如果没有错显示"spell-checking done",否则就在屏幕上显示可选择拼写“At the top of the screen, Ispell opens a small window that displays alternative spellings, numbered starting with 0. The min原创 2012-08-21 06:53:55 · 1454 阅读 · 0 评论 -
Ispell 在emacs中常见问题
1:M-x flyspell-word 后总是提示“Error: No word lists can be found for the language "zh_CN"”.其实这个问题的原因就是没有安装汉语包,当时我就上网找很多人有一个问题时“Enabling Flyspell-mode gives an error”,我也看了一些人的解答说“Missing dictionaries, or原创 2012-08-20 21:55:57 · 6108 阅读 · 0 评论 -
Emacs time management tools
Displaying the CalendarM-x calendar 下面时常用的一些命令, 注意g d是设定时间的。Display holidaya list-calendar-holidays 它会列出所显示月份中的holidayM-x holidays list the holidays surrounding the curren原创 2012-08-21 23:43:46 · 748 阅读 · 0 评论 -
lisp 中REQL基本操作
直接输入q推出调试器,然后回到REQL里,调试器缓冲区将会消失,而REQL将显示下面CL-USER> (hello-world); Evaluation aborted on #.C-c C-c 将启动 slime-compile-defun命令,将当前定义发给lisp进行求值并编译C-c C-z 切换到REPL C-x C-s 可以启动Emacs命令save-buff原创 2012-07-18 18:00:49 · 1222 阅读 · 0 评论 -
emacs as work environment
Shell BufferRunning one command at a TimeIn Emacs session -> M-! -> prompt "shell command" -> cat /home/ryu/test -> display in *Shell Command Output*C-u M-! 与 M-!不同的是,它直接显示结果在当前buffer中鼠标所在位置后面原创 2012-08-21 18:24:06 · 803 阅读 · 1 评论 -
font , color and Auto-mode customization
.emacs.elcThe byte-compiled Lisp version or your startup file. This is not editable, but can make startup quicker if you have a big, complex startup file..emacs.elThe more formal name for your s原创 2012-08-24 12:36:52 · 662 阅读 · 0 评论 -
定制Emacs环境
1:Hiding the tool bar 方式一:Option -> Show/shadow -> Tool bar 方式二:通过custom interface 更改.emacs 文件(custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand原创 2012-08-20 16:40:03 · 2974 阅读 · 0 评论 -
ubuntu配置jdk7.0过程
CD到随便的一个路径,但是最好是跟其他Java加载的文件都在一个文件夹中,我现在是/home/ryu/emacs/site在终端输入命令 tar -zxvf ./jdk-7u6-linux-i586.tar.gzJDK环境变量配置,有两个文件会被涉及到:一个是:/etc/environment >> 是系统启动加载索引。这个里面只有一个PATH的值,一个是:/etc/原创 2012-08-23 16:36:15 · 683 阅读 · 0 评论 -
查看软件安装路径
一、查看软件安装路径:Linux软件安装的地方不止一个地方,先说查看软件安装的所有路径(地址)。这里以w3m为例。比如说我安装了w3m,但是不知道文件都安装在哪些地方、放在哪些文件夹里,可以用下面的命令查看所有的文件路径在终端输入:whereis w3m回车,如果你安装好了Mysql,就会显示文件安装的地址,例如我的显示(安装地址可能会不同)w3m: /usr/bin/w3原创 2012-08-23 22:19:07 · 1208 阅读 · 0 评论 -
在Emacs中使用CEDET
By: 潘云登Date: 2009-7-8Email: intrepyd@gmail.comHomepage: http://blog.youkuaiyun.com/intrepydCopyright: 该文章版权由潘云登所有。可在非商业目的下任意传播和复制。对于商业目的下对本文的任何行为需经作者同意。 写在前面转载 2012-08-23 16:04:39 · 1034 阅读 · 0 评论 -
JDEE in Emacs
折腾了很久,现在终于设置好JDEE,现在也就具体步骤与遇见的问题分享一下。你可以通过JDEE - a Java Development Environment For Emacs 查看具体需要安装JDEE所需的组件及步骤一: Emacs 这个肯定是必须先安装好的,没什么可多说的二:Collection of Emacs Development Environment Tools (CE原创 2012-08-23 18:03:16 · 3825 阅读 · 0 评论 -
ECB in Emacs
根据官网信息Emacs Code Browser 进行ECB安装,1:ECB download 下载最新的版本,现在是ECB 2.402:在.emacs中添加load-path (add-to-list 'load-path "~/emacs/site/ecb-snap")3: 下面是分两种情况对.emacs进行配置,你可以通过.emacs中的*message*来进行验原创 2012-08-23 23:55:13 · 664 阅读 · 0 评论 -
C and C++ support in Emacs
M-x c-mode suffix is .c, .h, .y (for yacc grammars), or .lex (lex specification files).M-x C++-mode suffix is .C, .H, .cc, .hh, .cpp, .cxx, .hxx, .c++, or .h++C 和C++都是调用同一个Emacs lisp package,原创 2012-08-22 12:01:19 · 608 阅读 · 0 评论