代码改变世界

随笔分类 -  Emacs

ubuntu 11.10 使用 emacs-23.4 开发 erlang 整理之 安装 ESense

2012-05-05 16:29 by rhinovirus, 565 阅读, 收藏, 编辑
摘要: 1. 下载 地址为:http://sourceforge.net/projects/esense/files/2. 解压文件到 ~/.emacs.d/plugins/ 目录下3. 增加配置到 .emacs 中;;esense(setq load-path (cons "~/.emacs.d/plugins/esense-1.12" load-path))(require 'esense-start)(setq esense-indexer-program "~/.emacs.d/plugins/esense-1.12/esense.sh")重启, 阅读全文

ubuntu 11.10 使用 emacs-23.4 开发 erlang 整理之 安装 ecb

2012-05-05 16:21 by rhinovirus, 848 阅读, 收藏, 编辑
摘要: 1. 下载 ecb 地址为:http://sourceforge.net/projects/ecb/files/2. 解压 ecb 到 ~/.emacs.d/plugins/ 目录下3. 配置 cedet,emacs 23.4 自带了 cedet 只需要配置就可以使用了。;;cedet(require 'cedet)(global-ede-mode t);;;; Helper tools.(custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you co 阅读全文

ubuntu 11.10 使用 emacs-23.4 开发 erlang 整理之 安装distel

2012-05-05 16:11 by rhinovirus, 1198 阅读, 收藏, 编辑
摘要: 贴下官方的说明distel -- Distributed Emacs Lisp for Erlang.------------------------------------------------------------Distel is a library for Emacs<->Erlang communication, plus a suite oftools built on top of it, such as a debugger front-end. It works byusing the Erlang distribution protocol to conne 阅读全文

ubuntu 11.10 使用 emacs-23.4 开发 erlang 整理之 使用自带erlang-flymake.el

2012-05-05 15:51 by rhinovirus, 692 阅读, 收藏, 编辑
摘要: 我们看下 erlang安装目录下 /usr/local/lib/erlang/lib/tools-2.6.7/emacs/erlang-flymake.el官网已经在正式的版本中,集成了这个语法检查工具,只需要在 .emacs 增加如下配置就可以正常使用erlang-flymake了。(require 'erlang-flymake);;仅在存盘时进行检查(erlang-flymake-only-on-save);;键盘映射(defvar flymake-mode-map (make-sparse-keymap))(define-key flymake-mode-map (kbd &q 阅读全文

常用 emacs 命令 备忘

2012-05-03 19:18 by rhinovirus, 604 阅读, 收藏, 编辑
摘要: C-x C-f 寻找文件。C-x C-s 保存文件。C-x C-b 列出缓冲区。C-x C-c 离开 Emacs。C-x 1 关掉其它所有窗格,只保留一个。C-x u 撤销。C-x s 保存多个缓冲区C-x b foo <Return> 以回到文件“foo”的缓冲区。C-g 撤销 M-x 指令C-s 是向前搜索C-r 是向后搜索再按一次,搜索下一个出现的位置, C-g 来终止搜索C-x 字符扩展。 C-x 之后输入另一个字符或者组合键。M-... 阅读全文

rebar 使用有感

2012-05-01 18:50 by rhinovirus, 3129 阅读, 收藏, 编辑
摘要: Rebar是一个独立的erlang脚本,所以使用Rebar发布程序非常简单,甚至可以直接集成在项目文件夹中。默认的情况下,Rebar会按照 Erlang/OTP来组织项目的结构,这样一来,构建时的配置工作量就会大大减少。Rebar同时提供了依赖库(包)管理机制,方便程序员重用已存在的 模块。Rebar的依赖管理机制支持的方式非常多,甚至包括Git, Hg等少见的方式。下载地址:https://github.com/basho/rebar官方介绍:https://github.com/basho/rebar/wikimochiweb 这个开源项目,也是使用 rebar 来构建的。 期望的是... 阅读全文

ubuntu 11.10 使用 emacs-23.4 开发 erlang 整理 之 auto-complete 插件的安装

2012-04-25 16:30 by rhinovirus, 2574 阅读, 收藏, 编辑
摘要: 大家好,欢迎大家继续关注 使用 emacs 开发 erlang的系列文章,今天给大家带来 auto-complete 插件的安装教程。 关于这个插件究竟能给 emacs 带来,或者增强什么样的功能,大家可以看下官方给的介绍 具体地址是: http://cx4a.org/software/auto-complete/ http://cx4a.org/software/auto-complete/manual.html 我大概的介绍一些,比较重要的应该是代码补全,因为我本身接触这个才几天。并不是很了解,欢迎大牛留言介绍,呵呵。 安装我也是参看了别的朋友的文章,应该是不少,... 阅读全文

ubuntu 11.10 使用 emacs-23.4 开发 erlang 整理 (新手推荐)

2012-04-25 12:24 by rhinovirus, 2779 阅读, 收藏, 编辑
摘要: erlang IDE 一直是 erlang界有新手到来时讨论的话题,最近一直在折腾这个闹心的IDE,对于没有使用过emacs的新手来说,emacs环境的搭建十分困难,如果你英文不错,那还是能通过自己的摸索,最后修成正果的,但是如果你E文烂,那接下来就是痛不欲生了。网上关于 emacs 搭建erlang开发的文章并不是很多,而且版本各不一样,所以写下此文,希望能帮助想通过 emacs开发erlang的朋友,废话不多说,步入正题。 系统环境 Ubuntu 11.10,下载地址:http://www.verycd.com/topics/2907723/ 这里我下载的是:[乌班图].ubuntu... 阅读全文

emacs 安装 tabbar 插件

2012-04-24 20:43 by rhinovirus, 2443 阅读, 收藏, 编辑
摘要: 插件下载地址:http://emacswiki.org/emacs/tabbar.elhttp://www.emacswiki.org/emacs/download/tabbar-ruler.el下载上面2个文件放置到 .emacs.d 文件夹中添加下面内容到 .emacs文件中,重启emacs就可以了。;;tabbar-ruler(load-file "~/.emacs.d/plugins/tabbar-ruler.el")(setq tabbar-ruler-global-tabbar 't) ; If you want tabbar(setq tabbar-r 阅读全文

emacs 安装 wrangler

2012-04-23 17:21 by rhinovirus, 349 阅读, 收藏, 编辑
摘要: 下载地址: https://github.com/RefactoringTools/wrangler文档地址:http://refactoringtools.github.com/wrangler/administrator@ubuntu:~$ cd ~/.emacs.d/plugins/wrangleradministrator@ubuntu:~/.emacs.d/plugins/wrangler$ sudo ./configure[sudo] password for administrator: *****administrator@ubuntu:~/.emacs.d/plugins/w 阅读全文

emacs 安装 distel

2012-04-23 16:12 by rhinovirus, 850 阅读, 收藏, 编辑
摘要: administrator@ubuntu:~$ cd ~/.emacs.d/plugins/disteladministrator@ubuntu:~/.emacs.d/plugins/distel$ sudo make && sudo make install[sudo] password for administrator: mkdir ebinerlc -W -o ebin +debug_info src/distel.erlerlc -W -o ebin +debug_info src/distel_ie.erlerlc -W -o ebin +debug_info sr 阅读全文

yasnippet-bundle 安装

2012-04-23 16:01 by rhinovirus, 517 阅读, 收藏, 编辑
摘要: 下载地址:http://code.google.com/p/yasnippet/downloads/detail?name=yasnippet-bundle-0.6.1c.el.tgz添加下面内容到 .emacs 文件中,保存,重启。;;yasnippet-bundle(add-to-list 'load-path "~/.emacs.d/plugins")(require 'yasnippet-bundle) 阅读全文

自动化安装 emacs-23.4

2012-04-23 12:48 by rhinovirus, 345 阅读, 收藏, 编辑
摘要: #!/bin/bash -eecho -e "please waiting...\n"sudo apt-get install -y libncurses5-devsudo apt-get install -y libgtk2.0-devsudo apt-get install -y libxpm-dev sudo apt-get install -y libgif-dev sudo apt-get install -y libtiff-devsudo apt-get install -y librsvg2-devsudo apt-get install -y libdbu 阅读全文

.emacs 配置保存

2012-04-22 21:40 by rhinovirus, 2883 阅读, 收藏, 编辑
摘要: ;;设置标题(setq frame-title-format '(" administrator - Emacs - [ " (buffer-file-name "%f \]" (dired-directory dired-directory "%b \]"))));; 最大化(defun my-maximized ()(interactive)(x-send-client-messagenil 0 nil "_NET_WM_STATE" 32'(2 "_NET_WM_STATE_MAXI 阅读全文

emacs 使用 distel nodedown 问题解决办法

2012-04-21 21:13 by rhinovirus, 385 阅读, 收藏, 编辑
摘要: 首先感谢 网友广州-ll 和 深圳-燕尘 的帮助之前我下载到版本是 从http://code.google.com/p/distel/ 这里下载到。这个版本应该是有问题的。详细可以看https://github.com/massemanet/distel 作者已经修正了这个bug。 阅读全文

auto-complete 最新下载

2012-04-19 21:02 by rhinovirus, 555 阅读, 收藏, 编辑
摘要: https://github.com/m2ym/auto-completehttps://github.com/m2ym/fuzzy-elhttps://github.com/m2ym/popup-el下面2个需要单独下载,然后放到上面解压都根目录下,然后需要修改auto-complete.el,增加红色这行,最后再安装。(defcustom ac-modes '(emacs-lisp-mode lisp-mode lisp-interaction-mode slime-repl-mode c-mode cc-mode c++-mode java-mode malabar-... 阅读全文

Emacs 安装 auto-complete (转)

2012-04-19 20:44 by rhinovirus, 5768 阅读, 收藏, 编辑
摘要: 地址:http://blog.csdn.net/bigmarco/article/details/6731864http://cx4a.org/software/auto-complete/auto-comlete号称Auto Complete Mode is the most intelligent auto-completion extension forGNU Emacs.1st 下载 auto-complete$wget http://cx4a.org/pub/auto-complete/auto-complete-1.3.1.tar.bz2$tar jxvf auto-complet 阅读全文

Auto Complete Mode 用户手册

2012-04-19 18:24 by rhinovirus, 386 阅读, 收藏, 编辑
摘要: 地址:http://cx4a.org/software/auto-complete/manual.html 阅读全文

Basic emacs setup (转载)

2012-04-19 16:52 by rhinovirus, 757 阅读, 收藏, 编辑
摘要: 地址:http://www.yilmazhuseyin.com/blog/dev/basic-emacs-setup/Basic emacs setupEmacs is a great editor. But it is really hard to set it up. So I decided to write a document for my current emacs setup. In this post, I will explain how to install emacs with a basic setup.I will cover how to:Install emacs 阅读全文

ubuntu 11.10 编译安装 emacs-23.4

2012-04-19 16:48 by rhinovirus, 500 阅读, 收藏, 编辑
摘要: 安装以下依赖库sudo apt-get installlibncurses5-devlibgtk2.0-devlibxpm-devlibgif-devlibtiff-devlibrsvg2-devlibdbus-1-devlibgconf2-dev使用locate crt1.o命令定位 crt1.o 文件的位置比如我的是 /usr/lib/x86_64-linux-gnu编译:./configure --with-crt-dir=/usr/lib/x86_64-linux-gnu安装sudo make && sudo make install 阅读全文