background preloader

Emacs

Facebook Twitter

EmacsWiki: 網站地圖. Xah Emacs Tutorial. Nothing This emacs tutorial is designed for programers & scientists who wish to learn emacs to get things done quickly, without spending a lot time on Emacs's special terminologies & methods.

Xah Emacs Tutorial

For programers, knowing emacs benefits you for life. Use the search box at top to find things. For new articles, subscribe: Xah Emacs Blog. Quick Tips Working with Files the church of emacs filling, of chars lispy and binding, buffers insert yank, meta sexp add-hook, Eight M-bites And C. Find & Replace Tab, Indentation, Whitespace Editing Tricks Common Tasks Using shell #! Working with HTML Emacs Keys ⌨ Productivity Editing Convenience Setting Up Emacs Init Customization Settings Build Emacs, New Features Useful Packages Misc Emacs Lisp Tutorial Keybinding, Keyboard, Emacs Pinky Emacs Modernization Emacs Related Essays Emacs Images Thumbnails Index Buy Xah Emacs & Emacs Lisp Tutorial About the author, Acknowledgement.

Emacs. 开源世界旅行手册. 开源世界旅行手册 版权 © 2009 Kardinal 目录 授权致谢序言 更新纪录导读如何写作科技文档I.

开源世界旅行手册

气候 1. II. 13. III. 30. IV. 45. 范例清单 14.1. urxvt 配置 ~/.Xresources20.1. A guided tour of Emacs. A Guided Tour of Emacs The GNU Emacs Manual calls Emacs the extensible, customizable, self-documenting real-time display editor, but this description tells beginners little about what Emacs is capable of.

A guided tour of Emacs

To give you an idea, here is a sampling of the things you can do with Emacs: Beyond just being able to edit plain text files, Emacs includes special features to help you write in many different human languages and programming/markup languages: …as well as tools for compiling, running, and testing programs. Emacs integrates with GDB to provide an IDE (M-x gdb): Emacs can compare two files and highlight their differences (M-x ediff): Emacs is a file manager (M-x dired): Emacs can read news, mail, and RSS feeds (M-x gnus): You can even play tetris in Emacs (M-x tetris): You might see now why some people consider Emacs to be not merely a text editor but almost a complete operating system.

Why Emacs? Emacs is also portable. Before we get started… Occasionally I'll say something like this: Mark. Emacs 零碎1_纯灰. Emacs * sudo 打开高权限文件C-x C-f /root@localhost:PATH 或者:C-X C-F(如果在ido模式下再按一次 C-F) /sudo::/etc/samba/smb.conf 就会提示输入密码。

emacs 零碎1_纯灰

也可以如此:emacs配置文件里加入(defun wl-sudo-find-file (file dir)(find-file (concat "/sudo:localhost:" (expand-file-name file dir)))) 然后在.bashrc里加入function sudoec() { emacsclient -a "" -nc -e "(wl-sudo-find-file \"$1\" \"$PWD\")" ;}function sudoet() { emacsclient -a "" -t -e "(wl-sudo-find-file \"$1\" \"$PWD\")" ;} 执行source ~/.bashrc后就可以直接使用sudoec或者sudoet打开高权限文件了。 * 增大字体缩小字体shift + 左键* 字体直接在菜单里选即可 win 下 consolas+雅黑 (setq default-frame-alist(append'((font . ! Emacs.Fontset-1:-adobe-courier-medium-r-*-*-10-*-*-*-*-*-fontset-kai,\chinese-gb2312:-*-simkai-medium-r-*--16-*-*-*-*-*-gbk-0,\mule-unicode-0100-24ff:-misc-fixed-medium-r-normal--16-*-*-*-*-*-iso10646-1 Emacs.Fontset-2:-adobe-courier-medium-r-*-*-10-*-*-*-*-*-fontset-hei,\chinese-gb2312:-*-simhei-medium-r-*--16-*-*-*-*-*-gbk-0,\mule-unicode-0100-24ff:-misc-fixed-medium-r-normal--16-*-*-*-*-*-iso10646-1 问题解决了,这个feature叫做block agenda: etags *.

将emacs中高亮化之后的文档存为html格式. 方法: 下载htmlize.el 修改.emacs文件,添加 (require 'htmlize) 执行: M-x htmlize-buffer 就可以由当前已语法高亮化的文档生成相应的html格式文档。

将emacs中高亮化之后的文档存为html格式

经常要贴自己的代码给别人看,自然,就非常希望让别人看到自己在Emacs中精心配置好的颜色、代码风格,以便于阅读、理解代码。 不过,这似乎有点难度。 现在好了,用上htmlize.el这个扩展,就可以把代码当前的颜色、代码风格,直接转化为html页面。 这样,别人看起来会舒服很多,当别人认为你的代码有用的时候,再叫你拿txt文件也不迟。 可以先看看作者的例子,htmlize.el.html就是htmlize.el的彩色显示,这样,可读性是不是比纯文本的htmlize.el强多了? 把htmlize.el扔到你的path里,并在.emacs里加入以下语句即可: ;; set htmlize(require ‘htmlize) 这个扩展可以有如下几种使用方法: