`
zhongwencool
  • 浏览: 27984 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

emacs与erlang的完美结合 

阅读更多
1.在emacs中使用c+x c+z 启动erlang shell 会报错use of opcode 153; this emulator supports only up to 152 after upgrading to R140B4,因为erlang的beam文件版本不一致导致,linux下有2个erlang,一个14的,一个15的。所有要把14的删除(还有改.emacs中的配置,使用
这里的启动路径一致,不然会报erlexec找不到。

2.实现emacs中的跨模块操作
要理解erl后面跟的参数的用途:
erl <arguments>
The arguments can be divided into emulator flags, flags and plain arguments:

* Any argument starting with the character + is interpreted as an emulator flag.
As indicated by the name, emulator flags controls the behavior of the emulator.

*
Any argument starting with the character - (hyphen) is interpreted as a flag which should be passed to the Erlang part of the runtime system, more specifically to the init system process, see init(3).
各种参数+,一,普通的使用

经常用的参数:
最重要的分布式的支持:用于节点与节点间的通迅用:(底层用的tcp/ip):
节点间的联系:松散结构
The nodes in a distributed Erlang system are loosely connected. The first time the name of another node is used, for example if spawn(Node,M,F,A) or net_adm:ping(Node) is called, a connection attempt to that node will be made.
Connections are by default transitive. If a node A connects to node B, and node B has a connection to node C, then node A will also try to connect to node C. This feature can be turned off by using the command line flag -connect_all false, see erl(1).
If a node goes down, all connections to that node are removed. Calling erlang:disconnect_node(Node)will force disconnection of a node.
The list of (visible) nodes currently connected to is returned by nodes().
cookie用于保护节点间的安全security,只是一些随机的数字

分享到:
评论

相关推荐

    erlang emacs开发环境

    erlang的emacs环境搭建,其实网上有好多教程,下载地址也有,我这个是把需要的软件下载好了的,并且配置好了的,主要是方便不能下载软件的朋友。 包括.emacs.d .emacs .erlang.cookie distel-4.03.tgz Emacs-23-CvsP...

    refacterl:erlang.el 之上的一组工具,可帮助使用 Emacs 开发 Erlang 软件

    重构erlang.el 之上的一组工具,可帮助使用 Emacs 开发 Erlang 软件安装现在需要手动安装: git clone git@github.com:erlang-emacs/refacterl.git(add-to-list 'load-path " /path/to/refacterl " )(require '...

    Erlang开发环境搭建

    本文将指导读者如何在Windows平台下搭建Erlang开发环境,包括安装Erlang OTP、Emacs W32、Distel等工具,并配置Erlang mode和Distel。 一、安装Erlang OTP Erlang OTP是Erlang的官方实现,提供了完整的开发环境。 ...

    EMACS速成--结合实例

    #### 一、EMACS简介与历史背景 EMACS,全称为Editor MACroS,是一款功能强大且高度可定制的文本编辑器。它最初由Richard Stallman于1975年在麻省理工学院与Guy Steele合作开发。这款编辑器的设计灵感来源于之前的两...

    Emacs配置与插件

    本文将深入探讨Emacs的配置与插件使用,帮助新手快速上手。 首先,我们要明白Emacs的基本配置是提升其用户体验的关键。在Emacs中,配置主要通过`.emacs`或`.emacs.d`目录下的文件进行。`.emacs`文件是一个Lisp脚本...

    erlang环境搭建

    Erlang环境搭建 Erlang是一种开源的编程语言,主要设计用于构建高并发、分布式、容错性强的系统。本文将详细介绍如何在...结合Emacs和Distel这样的工具,可以显著提高开发效率,帮助你更好地理解和利用Erlang的特性。

    三本emacs书籍:生存于emacs+生活于emacs+emacs手册

    Emacs是一款强大的文本编辑器,深受程序员和高级用户喜爱,因其高度可定制性和丰富的扩展功能而闻名。这个压缩包包含了三本关于Emacs的重要书籍,旨在帮助用户从初识到熟练掌握这款工具。 《Survive in Emacs》是...

    emacs用户手册(中文版).pdf

    - **GNU与Emacs**:Emacs是GNU项目的一部分,由Richard Stallman于1975年在MIT创立的Free Software Foundation (FSF)发起。GNU旨在创建一个完全自由的软件系统,与UNIX兼容但免费。 - **Emacs的起源与特性**:Emacs...

    Emacs User 's Guide中文版电子书

    其它与 Emacs 相关的工作环境 与 Emacs 有关的议题 如何起动 Emacs 如何离开 Emacs EMACS 的萤幕安排 Emacs 的缓冲区与视窗 Emacs 的基本编辑指令 如何载入档案与储存档案 Emacs 的基础编辑指令 何谓 ...

    emacs 24.5 for windows

    4. **share**:这个目录包含了许多与Emacs相关的共享资源,如Lisp库、主题、帮助文档等。Lisp库是Emacs的核心,因为Emacs几乎所有的功能都是用Emacs Lisp语言编写和扩展的。在这里,你可以找到预定义的模式文件,...

    21天erlang

    通过这份文档提供的信息,初学者可以了解如何从零开始搭建Erlang的开发环境,以及如何使用Erlang Shell和Emacs来编写、编译和运行Erlang程序。文档中的知识点设计得非常基础,以确保初学者在没有任何预备知识的情况...

    Atom-emacs,用于javascript开发的gnu emacs配置。.zip

    Atom-emacs是一个专门为JavaScript开发定制的GNU Emacs配置,它结合了Emacs的强大功能与Atom编辑器的现代化界面和用户体验。Emacs是一款历史悠久的、高度可定制的文本编辑器,深受程序员喜爱,尤其在Linux和开源社区...

    emacs

    4. **版本控制系统集成**:Emacs与Git等版本控制系统无缝集成,允许用户在编辑器内部进行提交、查看差异等操作。 5. **多窗口支持**:Emacs可以同时打开多个窗口,方便对比和编辑不同的文件。 6. **宏录制和播放**:...

    [emacs].emacs

    标签 "源码 工具" 表明这个 .emacs 文件可能包含了一些与源代码编辑相关的工具和配置,比如语法高亮、自动补全、代码折叠等功能,这些对于开发人员来说非常有用。 压缩包内的文件名称 "markdown-mode.el" 和 ...

    Survive in Emacs(Emacs生存指南).7z

    12. **Emacs与终端集成**:Emacs中的shell模式(M-x shell)和ansi-term可以让你在编辑器内部运行终端命令。 通过阅读《Survive in Emacs》,你将能够熟练地驾驭这个看似复杂的编辑器,体验到其高效、可定制的工作...

    Emacs使用详解,Emacs使用详解

    #### 二、启动与退出Emacs 启动Emacs非常简单,只需在终端输入`emacs`然后回车即可。退出Emacs可以通过组合键`C-x C-c`来实现。 #### 三、基本操作 Emacs提供了丰富的文本编辑操作,包括移动光标、插入文本、删除...

    emacs26.1 windows版本

    3. **界面与用户体验**:Emacs的界面设计和用户体验也在不断进化。可能包括了新的主题、更友好的快捷键设置,或者对高DPI显示器更好的适配。 4. **扩展库的更新**:Emacs有许多内置的库和模式,如ESS(用于交互式...

    erlang环境配置[定义].pdf

    首先,要配置Erlang模式,需要在Emacs的初始化文件`.emacs`中添加如下代码,设置`load-path`、`erlang-root-dir`和`exec-path`,使得Emacs能够找到Erlang的相关库和执行文件: ```lisp (setq load-path (cons "C:/...

    erlang环境配置借鉴.pdf

    本文将 introduce 一种使用 Emacs for Windows 配置 Erlang 环境的方法,包括安装、配置和插件的安装等方面。 首先,需要下载最新版本的 Emacs for Windows 并解压缩,然后建立 .emacs 配置文件。在 .emacs 文件中...

Global site tag (gtag.js) - Google Analytics