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-buffer)
            (local-set-key (kbd "C-a") ‘eshell-bol)
            (local-set-key (kbd "C-c SPC") ‘ace-jump-mode)
            (local-set-key (kbd "<up>") ‘eshell-previous-matching-input-from-input)
            (local-set-key (kbd "<down>") ‘eshell-next-matching-input-from-input)))

这里,我将方向键上,下分别指定到向前和向后查找命令历史.这里要保存命令历史,采用以下配制:

(setq eshell-save-history-on-exit t)

emacs中eshell的快捷键配制

时间: 2024-07-29 08:21:05

emacs中eshell的快捷键配制的相关文章

emacs中查询英汉字典

在用emacs查阅文档或上网的时候时常会遇到不认识的英文单词,若老是要切换到xdict查寻单词再切回emacs则显得太过繁琐.所幸,使用dict/dictd工具和dictionary.el可以实现直接在emacs中查询英文单词的释义. 1. 安装dict/dictd ubuntu下可以直接用apt-get安装 sudo apt-get install dict dictd 2. 安装英文-中文字典 sudo apt-get install dict-xdict dict-stardic 3. 安

解决emacs中cscope的定义键无效

1.cscope的el插件为xcscope.el,通过“sudo find / -name xcscope.el”查找该文件所在的位置 2.打开xcscope.el查找“(define-key cscope:map "\C-css" 'cscope-find-this-symbol)”改行语句在我的机器上,"\C-css"的定义方式无法接受键输入,重新定义为"\C-c\C-s\C-s"也就是如下语句:(define-key cscope:map

excel 中“插入”的快捷键有吗?

ctrl+shift+;  :插入时间 ctrl+;    :输入日期 ctrl+shift+#   :应用含年,月,日的"日期"格式 [email protected]    :应用含小时和分钟并标明上午或下午的"时间"格式 excel 中"插入"的快捷键有吗?,布布扣,bubuko.com

Emacs 中的coding system

.title { text-align: center; margin-bottom: .2em } .subtitle { text-align: center; font-size: medium; font-weight: bold; margin-top: 0 } .todo { font-family: monospace; color: red } .done { font-family: monospace; color: green } .priority { font-fami

vs中常用的快捷键

VS中常用的快捷键: ctrl+s         保存 ctrl+Shift+S   保存所有VS中打开的所有文件 ctrl+O         打开新文件 ctrl+Shift+O   打开项目 ctrl+Shift+A   当前项目中添加新建项 ctrl+F4        关闭当前打开页 ctrl+F6        跳到下一个窗口 ctrl+Shift+F6  跳到前一个打开的窗口 F12            转到函数定义实现处,或者转到变量定义处 ctrl+-         跟F

Emacs 中使用 shell

直接在 Emacs 中使用 shell 能增加一点效率.Emacs 本身支持的 shell 相关的命令很多,此处化繁为简,只用一条足够了. M-x shell:将打开一个名为 * shell * 的 buffer,之后可以像 terminal 中一样使用了. 效果如下,

Emacs中的前进后退jump-tree

.title { text-align: center } .todo { font-family: monospace; color: red } .done { color: green } .tag { background-color: #eee; font-family: monospace; padding: 2px; font-size: 80%; font-weight: normal } .timestamp { color: #bebebe } .timestamp-kwd

在Emacs中生成LaTeX公式

苹果系统下面有个LaTeXiT软件,可以方便地生成LaTeX公式,然后拖拽到别的程序中直接使用.在Windows下这方面的工具就比较少了.不过如果装有CTeX中文套装和Emacs的话,倒不妨自己做一个简易的版本. 思路很简单:开一个Emacs buffer,编辑好公式,执行自编的texify函数调用相关命令生成dvi文件.然后再根据这篇文章中说的方法,对其进行适当的裁剪,并一次生成多种图片格式,以供其他程序使用.该函数如下: (defun texify () (interactive) (let

android开发中常用的快捷键

Eclipse快捷键-方便查找,呵呵,记性不好 行注释/销注释 Ctrl+/  块注释/销注释/XML注释 Ctrl+Shift+/   Ctrl+Shift+\查找 查找替换 Ctrl+H  Ctrl+F查找下一个/往回找 Ctrl+K   Ctrl+Shift+K跳到某行 Ctrl+L,哈用惯了Editplus,不时会敲下Ctrl+G,查找当前元素的声明 Ctrl+G查找当前元素的所有引用 Ctrl+Shift+G重新组织Import Ctrl+Shift+O,能帮你一次去掉所有未使用的Im