From bc2283eb2461a5cec240ff299194deedbe5b56de Mon Sep 17 00:00:00 2001 From: matt Date: Mon, 11 Oct 2010 22:03:28 -0400 Subject: [PATCH] Custom var to control menu on @ load time --- mk-project.el | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/mk-project.el b/mk-project.el index cc3eac9..a4e26f6 100644 --- a/mk-project.el +++ b/mk-project.el @@ -211,6 +211,12 @@ value is not used if a custom find command is set in :type 'boolean :group 'mk-project) +(defcustom mk-proj-menu-on t + "If non-nil, define the 'mk-project' menu in the menu-bar at +load time. See also `project-menu-remove'." + :type 'boolean + :group 'mk-project) + ;; --------------------------------------------------------------------- ;; Utils ;; --------------------------------------------------------------------- @@ -774,6 +780,9 @@ project is not loaded." (interactive) (global-unset-key [menu-bar mkproject])) +(when mk-proj-menu-on + (project-menu)) + (provide 'mk-project) ;;; mk-project.el ends here