From 12fe615960b5c0777168c286bd7aaaf548a299a1 Mon Sep 17 00:00:00 2001 From: moculus Date: Sat, 21 Jul 2007 15:28:41 +0000 Subject: [PATCH] --HG-- branch : pmacs2 --- README | 6 +++++- mode2.py | 2 +- mode_dir.py | 32 ++++++++++++++++---------------- 3 files changed, 22 insertions(+), 18 deletions(-) diff --git a/README b/README index 71e7f86..5a35bc0 100644 --- a/README +++ b/README @@ -67,9 +67,13 @@ Quick Start Guide: C-/ (or C-x u) undo last change M-/ (or C-x r) redo last undone change - C-c M-h open a buffer listing all available bindings + C-x C-f open file in a new buffer C-x k close the current buffer + C-c M-h open a buffer listing all available commands/bindings + M-h get a help with a command by name + M-? get information about a key sequence + C-x C-s save your changes C-x C-c quit diff --git a/mode2.py b/mode2.py index 3966e7e..b97f6e8 100644 --- a/mode2.py +++ b/mode2.py @@ -158,10 +158,10 @@ class Fundamental(Handler): self.add_bindings('cmd-help-buffer', ('M-h',)) self.add_bindings('set-mode', ('C-x m',)) self.add_bindings('cancel', ('C-]',)) - self.add_bindings('exec', ('C-c e',)) self.add_bindings('grep', ('C-c g',)) self.add_bindings('pipe', ('C-c p',)) + self.add_bindings('view-buffer-parent', ('C-c .',)) # unbound actions self.add_action(method.GetToken()) diff --git a/mode_dir.py b/mode_dir.py index 9e3897e..6d1e9da 100644 --- a/mode_dir.py +++ b/mode_dir.py @@ -36,20 +36,20 @@ class DirGrammar(Grammar): class Dir(mode2.Fundamental): grammar = DirGrammar() colors = { - 'blk.start': ('cyan', 'default'), - 'blk.name': ('cyan', 'default'), - 'chr.start': ('yellow', 'default'), - 'chr.name': ('yellow', 'default'), - 'dir.start': ('blue', 'default'), - 'dir.name': ('blue', 'default'), - 'lnk.start': ('green', 'default'), - 'lnk.name': ('green', 'default'), + 'blk.start': ('cyan', 'default'), + 'blk.name': ('cyan', 'default'), + 'chr.start': ('yellow', 'default'), + 'chr.name': ('yellow', 'default'), + 'dir.start': ('blue', 'default'), + 'dir.name': ('blue', 'default'), + 'lnk.start': ('green', 'default'), + 'lnk.name': ('green', 'default'), 'fifo.start': ('red', 'default'), - 'fifo.name': ('red', 'default'), + 'fifo.name': ('red', 'default'), 'sock.start': ('red', 'default'), - 'sock.name': ('red', 'default'), - 'unk.start': ('magenta', 'default'), - 'unk.name': ('magenta', 'default'), + 'sock.name': ('red', 'default'), + 'unk.start': ('magenta', 'default'), + 'unk.name': ('magenta', 'default'), 'perm.setid': ('yellow', 'default'), 'perm.sticky': ('yellow', 'default'), @@ -57,10 +57,10 @@ class Dir(mode2.Fundamental): 'perm.write': ('magenta', 'default'), 'perm.exec': ('magenta', 'default'), - 'owner': ('cyan', 'default'), - 'group': ('cyan', 'default'), - 'size': ('yellow', 'default'), - 'mtime': ('green', 'default'), + 'owner': ('cyan', 'default'), + 'group': ('cyan', 'default'), + 'size': ('yellow', 'default'), + 'mtime': ('green', 'default'), } def __init__(self, w): mode2.Fundamental.__init__(self, w)