知易行难

Archive for July, 2007

沽源避暑

Jul 27, 2007

Tags

上周末去了女朋友的老家,张家口沽源县。这周三回的北京。

沽源,坝上草原,是个干净又恬静的地方,更是个避暑佳地。白天气温并不低,但仍觉得非常凉爽;早上与夜里,即便穿了长裤长袖,还是会觉得有些凉。大夏天的晚上捂着被子睡觉,真是一种享受。

如果条件允许,每逢盛夏去那边避暑休养,多美。

PS:那边的小花小草也蛮漂亮的:)

Ruby Content Assist with Emacs Key Scheme

Jul 2, 2007

Tags




In Aptana(or Eclipse) with RadRails, if you use the Emacs keybinding Scheme, you would find that the Content Assist shortcut Alt+/ doesn’t work (as the Ctrl + Space under Default Scheme). Apparently this shortcut was left out by the RDT. So here’s the way to add it manually:

  1. Go to Window > Preferences > General > Keys
  2. Make sure the Emacs Scheme is selected under Modify tab
  3. Under Command, select Edit in the Category list and select Ruby Content Assist in the Name list
  4. Under Key Sequence, focus on the Name field, press “Alt + /”, then select Ruby Editor in the When list

    aptana-emacs-key

  5. Click Add, then click OK to close the Preferences dialog
  6. Open a ruby source file to confirm that the Alt + / works

    ruby-content-assist

Archives: Monthly or