博客园  :: 首页  :: 联系 :: 管理

effective emacs中文版[11]

Posted on 2011-08-16 15:12  雪庭  阅读(394)  评论(0编辑  收藏  举报

Tune in next time...

下次要写的东东...


At some point I'll have collected and documented 50 tips, at which point Scott Meyers can just eat his heart out. I made a valiant effort to do them all in one sitting, but I gave up just now and changed this blog's heading from "50 Specific Ways..." to "10 Specific Ways..." At least I did it this entry all in one sitting of a little over 2 hours. An Eclipse user would have spent that much time digging through the manuals, looking for a refactoring tool that can write blogs. Fat chance.

一开始我有点想写50个条款的,就像Scott Meyers的力作《Effective C++》那样写50个条款。但最终我还是放弃了用一次休息时间就写出50个tips的相法,并把题目中的50改成了10。我至少花了两个小时坐下来写了这篇文章。要是一个eclipse用户的话,很可能会愿意花更多时间在文档中找寻可以帮助写blog的重构工具。

For upcoming tips, a few that come to mind as being particularly useful are:
下面列一下接下来想到的,有用的条款吧:

   1. fill-paragraph (Alt-p) -- intelligently line-wraps your text for you: an absolute must, and it works inside source-code comments.
   1. fill-paragraph (alt-p) -- 智能地帮你把文本分行,这是必备良药啊,在注释里面都能用。

   2. gnuserv: automatically open certain document types (including View Source in your browser)in Emacs.
   2. gnuserv: 自动用emacs来开启特定文档(包括你浏览器的"view source")。

   3. M-x Dired: a powerful way to manage your files and directories. It can do things that NO other tool can do (at least that I'm aware of), including renaming arbitrary groups of files from one regexp to another.
   3. M-x dired: 一个很强的文件/目录管理工具,它提供了一些其它工具完全没有的强大功能(至少据我所知),比如用regexp把某个用户组的文件重命名。

   4. whitespace-manipulation commands: C-x C-o (delete-blank-lines), delete-trailing-whitespace,tabify and untabify, indent-region, and so on.
   4. whitespace处理命令:C-x C-o(delete-blank-lines), delete-trailing-whitespace, tabify 和 untabify 等等...

   5. nxml-mode: the ONLY way to fly when you're editing XML. Authored by XML guru James Clark; it knocks the socks off any IDE-based XML editor out there today.
   5. nxml-mode: 唯一让你在处理xml时编辑如飞的方法,作者是xml高手James Clark;完全把其它基于IDE的XML编辑器比下去了...

   6. picture-mode: the best way to draw ascii art, and useful in a surprising number of situations.
   6. picture-mode: 搞ascii艺术时最好用的东东。                   

   7. minibuffer management: mastering recursive edits, learning how to abort from various
situations, command completions, and other command-entry trickery.
   7, minibuffer管理: 掌握递归编辑,在各种情况下怎样中断退出,命令补全及其它各种输入技巧。           

   8. effortless navigation: re-bind a few keys so that you can move the cursor in any direction,by chars or words, by holding down Alt and just pressing various letter keys.
   8. 不费吹费之力的导航: 绑定一些各个方向移动光标的命令:以字符为单位,以词为单词的。使用alt加某个字符的快捷键组合。

   9. region management: choosing a non-disgusting color for the highlighted region, covering region-related commands.
   9. 区域管理: 选一个不太难看的区域高亮颜色。

  10. rectangle commands: yet another incredibly important set of related commands with no analogues in other editors. Once again, you'll wonder how you lived without them.
  10. 矩形区域命令: 这是另一组很神奇的命令(译注:不过很多编辑器现在也都有这功能了)。

  11. emacs shells: tips and tricks for getting the most out of a bash command shell running as an Emacs subprocess.
  11. emacs shell: 高效使用emacs shell的技巧。

  12. align-regexp: my new favorite command. just learned it recently, and I use it almost every day.
  12. align-regexp: 我新收藏的命令,最近才学到的,几乎天天都用到。

  13. frame initialization: put Emacs exactly where you want it, every time it starts up, by auto-detecting the screen dimensions and computing where it should be.
  13. frame初始化: 如何在每次打开emacs时,自动根据显示器尺寸把emacs窗口设定好。

  14. using the goal column: things every Emacs power-user should know.
  14. 使用goal column: 每个emacs强人都该知道的。

  15. setting the fill column: how to get the most out of fill-region and fill-paragraph.
  15. 设定fill column: 最大发挥 fill-paragraph 和 fill-region的功能。

  16. optimizing OS settings, such as speeding up your keyboard repeat rate, choosing an ideal Emacs font, and so on.
  16. 优化操作系统设定: 设定键盘重复率,设定好的emacs字体,等等。

  17. browsing and editing archives: tar, gzip, zip, jar, etc. Most people have no idea this feature exists, and it's nothing short of amazing.
  17. 浏览编辑归档文件: tar,gzip,zip,jar等等。这没什么奇怪的。

  18. advanced keybinding: learn the syntax for binding function keys, home/end, and other oddball keys. Learn how to make keybindings local to a particular buffer or mode.
  18. 高级绑定: 学习绑定的语法,home/end等其它不常绑定的按键,学习如何特定于buffer来绑定按键。

  19. mastering the kill ring, including using Derek Upham's fancy new mode for viewing its contents.
  19. 掌握 kill ring, 包括用 Derek upham的新mode来查看它的内容。

  20. mastering Info: customizing your Info dir, finding and adding in new Info files, and advanced navigation and bookmarking.
  20. 掌握 kill ring, 包括用 Derek upham的新mode来查看它的内容。

  21. using M-x customize: learn how this beast works, and how to use it or avoid it as needed.
  21. 使用好 M-x customize: 学习它的运作,以及怎么避免使用它。

  22. utility apps: M-x calendar, M-x calc, and others.
  22. 工具程序: M-x calendar, M-x calc, 及其它。

The list goes on and on... ah, well, I'll get around to them someday.And with that, it's a wrap! I'm heading to bed.

这个列表会一直增长下去~呵呵,在某天我会再把它们写出来吧。就这么多了,我得睡觉啦~~~。