Skip to content

Commit

Permalink
Custom var to control menu on @ load time
Browse files Browse the repository at this point in the history
  • Loading branch information
matt committed Oct 12, 2010
1 parent a5a4c6b commit bc2283e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions mk-project.el
Expand Up @@ -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
;; ---------------------------------------------------------------------
Expand Down Expand Up @@ -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

0 comments on commit bc2283e

Please sign in to comment.