瀏覽代碼

Add restriction (un)lock to `org-speed-commands-default'.

You can now use "<" and ">" as speedy key commands for
org-agenda-set-restriction-lock and org-agenda-remove-restriction-lock.
Bastien Guerry 14 年之前
父節點
當前提交
09ae8a0b1d
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      lisp/org.el

+ 2 - 0
lisp/org.el

@@ -16356,6 +16356,8 @@ BEG and END default to the buffer boundaries."
     ("Misc")
     ("o" . org-open-at-point)
     ("?" . org-speed-command-help)
+    ("<" . (org-agenda-set-restriction-lock 'subtree))
+    (">" . (org-agenda-remove-restriction-lock))
     )
   "The default speed commands.")