elisp】的更多相关文章

M-x  是运行command的意思. 若使用常规Emacs debugger(即不使用edebuger),先把要debug的函数加入到debug-on-entry:  M-x   debug-on-entry   the-function-name   RET然后再使用eval-last-sexp命令运行单句elisp(需要移动焦点point到函数调用处),一般情况下它被绑定到键盘C-x C-e,C-x C-e           runs   the   command   eval-las…
cons cell? 构建内存对象! 通过寄存器的基地址car和偏移地址cdr来--寻址内存对象,我是这样理解的. http://wiki.dourok.info/doku.php/%E5%B7%A5%E5%85%B7/emacs/elisp%E7%AC%94%E8%AE%B0…
在 Elisp 中,为变量赋值的函数有 set 与 setq,但是,两者存在很大的差异. 使用 set 赋值: 如果我们想为变量 flowers 赋值为一个 列表 '(rose violet daisy buttercup) ,我们需要如下语句: (set 'flowers '(rose violet daisy buttercup)) 需要注意的是,当你使用 set 函数为变量赋值时,你需要在 set 函数的两个参数(即变量与值)前添加单引号.因为如果我们不添加单引号,这两个参数就会被当成表达…
通常,我们在 Emacs 中运行 Elisp 代码片段,但是也可能需要在命令行终端运行 Elisp 脚本程序.在命令行终端运行 Elisp 脚本需要使用 --script 选项,例如: emacs --script process.el 此外,对于 Elisp 脚本程序而言,若要能在命令行终端运行,需要满足如下条件: 不依赖于 Emacs 初始化时用到的 Elisp 配置文件. 对于所需要的库,使用 require 或者 load 自行加载. 对于所需要的库,如果不是 Emacs 自己的,就需要…
elisp中的 if 特殊表与其他语言中的 if 语句逻辑上并无二致,关键在于如何使用. (if (> 4 3) (message "4 is greater than 3")) 同样也可以使用 if-else 结构 (if (< 4 3) (message "4 is lower than 3") (message "4 is greater than 3")) 但是会有一个问题,如果我们需要在 if 部或者 else 部对多个表求…
http://stackoverflow.com/questions/3855862/setq-and-defvar-in-lisp defvar, let, setq的语法分析: defvar introduces a dynamic variable while setq is used to assign a value to a dynamic or lexical variable. The value of a dynamic variable is looked up in the…
非常酷的网站: http://yige.org/cpp/defined_data_types.php 在Linux下有一个目录/proc/$(pid),这个目录保存了进程号为pid的进程运行时的所有信息,其中有一个文件maps,它记录了程序执行过程中的内存空间的情况.编译运行上面的代码. 内存   http://blog.csdn.net/ljianhui/article/details/21666327 程序: http://blog.163.com/zhoumhan_0351/blog/st…
Table of Contents 1. 37 Document Viewing 2. EmacsrelatedTranslation 2.1. Spacemacs 配置层(Configuration Layer)(layers作为专有名词可不做翻译) 2.2. 简介 2.3. Nomenclature(术语) 2.4. Emacs加载过程 2.5. Layer解析 2.5.1. layers.el 2.5.2. packages.el 2.5.3. funcs.el 2.5.4. config…
Table of Contents 1. 51.2.2 Hooks 51.2.2 Hooks Hooks(钩子或挂钩,为了保持文章的纯正性,这种专有名词不做翻译,后续以hooks为主),是定制化Emacs非常重要的一种机制. 一个Hook就是一个Lisp变量,其中包含了一系列在某个特定场景下调用的函数,列表中每个函数叫做hook function.比如kill-emacs-hook 会在Emacs推出前运行. 大部分hook都是Normal HOOK,这意味着每当EMACS运行这个Hook,Ho…
第三方软件库: http://download1.rpmfusion.org/free/fedora/releases/25/Everything/x86_64/os/repoview/index.html 原帖http://www.linuxdown.net/install/soft/2016/0303/4903.html 安装vim sudo dnf -y update sudo dnf install vim-enhanced common lisp 原帖:http://www.progr…