
emacs
vivianke
这个作者很懒,什么都没留下…
展开
-
emacs常用配置-新建文件和关闭文件
环境:ubuntu10.10, emacs 231,新建文件同打开命令一样:Ctrl-x Ctrl-f备注:此命令会在当前目录打开或者新建,故需要切换到指定的目录然后新建或者打开已有文件2,关闭文件编辑.emacs文件,然后添加;;close current window(global-set-key [C-f4] 'kill-this-buffer)可以使原创 2012-09-09 10:07:03 · 4949 阅读 · 0 评论 -
emacs常用配置-切换窗口
emacs 切换窗口参考链接:http://hi.baidu.com/wolfand11/blog/item/dd1bfa6daf3d48f1421694ac.html .emacs配置:(global-set-key [(control tab)] 'other-window);切换窗口这样可以使用Ctrl-tab键切换窗口原创 2012-09-09 19:01:00 · 886 阅读 · 0 评论 -
emacs常用配置-Hippie-expand自动补全
参考链接:http://www.adaiw.com/?p=343try-expand-dabbrev ; 搜索当前 buffertry-expand-dabbrev-visible ; 搜索当前可见窗口try-expand-dabbrev-all-buffers ; 搜索所有 buffertry-expand-dabbrev原创 2012-09-09 18:10:44 · 905 阅读 · 0 评论 -
emacs常用配置整理及使用
环境:ubuntu10.10, emacs 23该常用配置包含以下插件:color-themetabbarlinumecb-autoloadssessionibuffer等等相关资源可以从以下地址下载:http://download.youkuaiyun.com/detail/vivianke/4557362该资源的目录结构如下:└─site-lisp原创 2012-09-08 21:34:56 · 1021 阅读 · 0 评论 -
emacs常用配置-注释/反注释C++代码
.emacs配置如下:(defun qiang-comment-dwim-line (&optional arg) "Replacement for the comment-dwim command." (interactive "*P") (comment-normalize-vars) (if (and (not (region-active-p)) (not (loo原创 2012-10-06 23:26:10 · 1312 阅读 · 0 评论 -
emacs常用配置 c/c++源文件格式化
环境:Ubuntu10.10 + Emacs 23.emacs中配置使用Alt+5快捷键格式化整个源码文件,如下:(global-set-key (kbd "M-5") 'iwb) ;;格式化整个文件(defun iwb () "indent whole buffer" (interactive) (delete-trailing-whitespace) (indent-regi原创 2012-10-06 22:42:22 · 900 阅读 · 0 评论 -
emacs常用配置 gcc -o 输出文件指定
《emacs常用配置整理及使用》第6条的配置了使用gcc/g++编译的快捷键,如下:(defun quick-compile () "A quick compile funciton for C" (interactive) (compile (concat "gcc " (buffer-name (current-buffer)) " -g -pg"))) ;;编译c(global-原创 2012-09-23 12:29:45 · 1386 阅读 · 0 评论