Commits

Peter Szilagyi committed 0c17ac8

d, k, and q bindings like dired for most omake buffers

  • Participants
  • Parent commits 6c9f48e

Comments (0)

Files changed (1)

elisp/omake/omake-project.el

               (when dir (cd dir))
               (toggle-read-only 1)
               (case kind
-                ;; Don't turn on omake-mode in the projects buffer
+                ;; Don't turn on omake-mode or buffer-wide bindings in the projects buffer
                 (projects nil)
-                (t (omake-mode 1))))))
+                (t (omake-mode 1)
+                   (let ((kill (lambda ()
+                                 (interactive)
+                                 (Omake.kill-project (Omake.Id.current)))))
+                     (local-set-key "d" kill)
+                     (local-set-key "k" kill)
+                     (local-set-key "q" 'quit-window)))))))
          (get-non-file-buffer
           (lambda ()
             (let ((buf (get-buffer-create name)))