![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
emacs
文章平均质量分 82
齐格Insight
产品思维,工程能力,技术影响!
展开
-
matlab-emacs运行matlab程序出错.不能调用matlab命令行模式
在linux的emacs环境下运行matlab程序,一般需要安装以下三个程序,我是按照以下三个链接安装的(其实CEDET在新版本的emacs中有,只要配制一下就行了):CEDET matlab matlab-emacs不过在安装好matlab后记得把bin/matlab加入到环境变量,我的环境变量(这个怎么加请看linux的书籍)如下:我按照这个link配制matlab原创 2013-04-03 08:38:37 · 2735 阅读 · 0 评论 -
emacs中eshell的快捷键配制
eshell是emacs shell的简称,是emacs自带的shell.开始设置的时候还在想是否要找到它的key map (eshell-mode-map?).原来它是采用hook设置,如下所示(add-hook 'eshell-mode-hook (lambda () (local-set-key (kbd "C-j") 'switch-to原创 2014-05-05 14:27:53 · 2498 阅读 · 0 评论 -
emacs eshell cannot erase-buffer shows text is read only
When I use erase-buffer function to clean all content of *eshell* buffer. It shows test is read only.I find the answer to "How to clear the *shell* buffer ?" Using the following function replace.原创 2014-05-05 18:32:01 · 2345 阅读 · 0 评论 -
emacs run multiple eshell buffers (more then one eshell)
(defun buffer-exists (bufname) (not (eq nil (get-buffer bufname))))(defun make-shell (name) "Create a shell buffer named NAME." (interactive "sName: ") (if (buffer-exists "*eshell*")原创 2014-05-06 09:54:33 · 1210 阅读 · 0 评论 -
emacs quick open and jump file (or buffer) which name is current word
Sometime, we need to open a file or buffer which name began with current word in emacs.Here I give the solution as follows.(provide 'quick-file-jump)(defun ab/quick-buffer-jump () "Quickly jum原创 2014-05-13 18:40:07 · 1955 阅读 · 0 评论 -
emacs中怎样修改Major Mode的快捷键
我们知道,emacs中修改全局快捷键的格式如下:(global-set-key KEY COMMAND)如将M-j绑定到find-file函数如下:(global-set-key (kbd "M-j") 'find-file)那么,如何修改特定Major Mode下的快捷键呢?其基本格式如下:(global-set-key KEYMAP KEY COMMAND) 这里多原创 2014-04-07 18:50:06 · 3218 阅读 · 0 评论 -
emacs使用本地emacs server模式打开远程文件
使用emacs的用户都知道,一般要打开远程机器上的文件要使用TrampMode模式,调用方式如下:C-x C-f /remotehost:filename RET (or /method:user@remotehost:filename)但,这样打开有点麻烦,你必要输入用户名和机器ip等 emacs提供了一种client/server的模式,当我们在本地打开一个emacs,可以将它作原创 2014-05-11 14:50:31 · 9184 阅读 · 2 评论 -
mac系统下为emacs设置中文字体,解决乱码问题
最近换了个系统,现在用mac系统。当打开emacs后,中文支持的不是很好。有的地方能显示,在.el文件的注释里显示为口口口口口口口口这样的框,如下图所示找了半天,是因为中文字体的问题,只要设置好中文字体就行了。以前在Linux下中文就支持的很好,不用配制中文字体就能显示。配制代码如下(将其放到.emacs文件或init.el里就OK):;; --------------原创 2014-07-27 11:29:50 · 7885 阅读 · 0 评论 -
emacs使用multi-term作为terminal
emacs 使用multi-termemacs里的multi-term相当于mac下的iterm,是emacs下非常好用的terminal。载入multi-term.el文件emacs使用multi-term作为terminal,首先要将multi-term.el文件放到你emacs的load-path里。配置;; ------------------------------------------原创 2015-07-12 22:23:32 · 4368 阅读 · 2 评论 -
安装conkeror--emacs风格的web浏览器
今天无意间在网上看到一个emacs用户写的文章Rainmon Grau: smart-brower (墙外),说自从用了conkeror这个web浏览器,就再也不用w3m这个文本浏览器了。下面让笔者教你怎么在Linux系统里安装conkeror1. 首先你得安装XULRunner这个浏览器的运行环境,它的安装很简单,只需要下载解压就能用: 下载,它的下载地址点击。 解原创 2014-03-16 14:51:03 · 3193 阅读 · 1 评论 -
emacs将光标移动到当前行的中间
emacs里有将光标移动到当前行的行头(move-beginning-of-line)和行尾(move-end-of-line)的函数,但没有移动中一行中间的行函数我自己写了一个,如下:(defun move-middle-of-line () "Move point to the middle of line current displayed" (interactive)原创 2014-01-20 21:24:41 · 2317 阅读 · 0 评论 -
emacs lisp(elisp)程序像脚本一样运行
elisp程序的运行被称为取值,一般的过程是打开一个emacs编辑器,然后用快捷键C-x C-e 调用函数eval-current-buffer运行当前buffer里的elisp程序。emacs 22以后支持#!/usr/bin/emacs --script像脚本一样执行elisp程序,这样就没必要打开一个emacs编辑器后再执行了。下面是一个程序实例,见我的GitHub链接#!/us原创 2014-01-22 19:03:39 · 6876 阅读 · 0 评论 -
我的.emacs 23文件.备份用
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; cedet configure ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 启动cedet工具(require 'cedet);; Cecet的工程管理功能 (global-ede-mode t);; Helpe原创 2013-03-26 20:52:26 · 1101 阅读 · 0 评论 -
关于Emacs 24用purcell配制的color-theme问题
更新到最新的emacs 24.3.1用大家推荐的purcell的配制,下载如下:git purcell发现原来的color-theme不能用了,原来的设置如下:并且每次打开emacs出现如下问题:File error: Cannot open load file, color-theme 只能用M-x color-theme- 来切换,真是麻烦,最后,只好设置快捷键解决。原创 2013-04-13 21:14:02 · 4861 阅读 · 0 评论 -
C++实现:单链表的反转(序)操作
//main.cpp #include #include #include #include #include #include "linklist.cpp"#define MAXINTLEN 10using namespace std;int main(int argc, char *argv[]) { int tmp[MAXINTLEN]; doubl原创 2013-04-24 09:40:09 · 1367 阅读 · 0 评论 -
matlab call Ncut: Matrix is too large to convert to linear index.
在调用Ncut的matlab代码的时候发现出现如下问题:Matrix is too large to convert to linear index.原始的错误信息如下:??? Matrix is too large to convert to linear index.Error in ==> computeW at 10W = W/max(W(:));Error原创 2013-04-19 12:35:51 · 3223 阅读 · 4 评论 -
开始在github上写博客
github博文地址:http://aborn.github.io/%E7%94%9F%E6%B4%BB/IT%E6%8A%80%E6%9C%AF/linux/emacs/2013/05/06/begin-write-blog-on-github/关于这个博客的起源在几个月以前我还不知道这个世界还有像emacs这样强大的东西,很多年以前 我就接触过linux,那时候我还在念原创 2013-05-08 09:04:36 · 2255 阅读 · 0 评论 -
emacs24在windows下的home目录设置
现在emacs的版本已经到了24.3. 官网下载。下载后,在window下直接双击下载解压后的bin目录下的addpm.exe安装我发现,它的默认home目录为:c:/Users/aborn/AppData/Roaming/在它的默认home目录(c:/Users/aborn/AppData/Roaming/)下建立一个.emacs文件,写入以下内容:(load原创 2013-05-14 12:52:33 · 2628 阅读 · 0 评论 -
linux下解决emacs的backspace键变成了ctrl+h (C+h)键?
在linux服务器下(命令行终端),我发现emacs的backspace键变成了ctrl+h (C+h)键,这和平时的用键习惯很不一样。解决方法如下,在.emacs文件里加入如下两行:(global-set-key "\C-h" 'backward-delete-char-untabify)(global-set-key "\d" 'delete-char)原创 2013-07-29 13:30:23 · 6048 阅读 · 0 评论 -
emacs 为什么找不到执行程序?
我记得前段时间有个朋友问我为什么在emacs中打不开matlab程序?明明在terminal下是能打开的,却在emacs中不行.今天自己终于遇到了类似的问题,我今天安装racket 6.0.安装好后racket程序的执行路径为/usr/local/racket/bin然后我将这个路径加入到PATH里了,在terminal环境下能打开接下来安装Geiser,它是emacs下连接r原创 2014-05-02 23:08:41 · 2501 阅读 · 0 评论