emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/projectile 12d53c4 2/3: [Fix #1712] Make it possible to hi


From: ELPA Syncer
Subject: [nongnu] elpa/projectile 12d53c4 2/3: [Fix #1712] Make it possible to hide Projectile's menu
Date: Thu, 30 Sep 2021 12:57:42 -0400 (EDT)

branch: elpa/projectile
commit 12d53c47bfa88a8eff60b2d049cc220721ac84f1
Author: Bozhidar Batsov <bozhidar@batsov.dev>
Commit: Bozhidar Batsov <bozhidar@batsov.dev>

    [Fix #1712] Make it possible to hide Projectile's menu
---
 CHANGELOG.md  | 1 +
 projectile.el | 8 +++++++-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 0149390..c3bd43d 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,7 @@
 ### New features
 
 * [#1699](https://github.com/bbatsov/projectile/pull/1699): 
`projectile-ripgrep` now supports [`rg.el`](https://github.com/dajva/rg.el).
+* [#1710](https://github.com/bbatsov/projectile/issues/1710): Make it possible 
to hide Projectile's menu. See `projectile-show-menu`.
 
 ### Bugs fixed
 
diff --git a/projectile.el b/projectile.el
index 577c192..8dcf72c 100644
--- a/projectile.el
+++ b/projectile.el
@@ -5347,6 +5347,12 @@ thing shown in the mode line otherwise."
   :type 'string
   :package-version '(projectile . "0.12.0"))
 
+(defcustom projectile-show-menu t
+  "Controls whether to display Projectile's menu."
+  :group 'projectile
+  :type 'boolean
+  :package-version '(projectile . "2.6.0"))
+
 (defvar-local projectile--mode-line projectile-mode-line-prefix)
 
 (defun projectile-default-mode-line ()
@@ -5442,7 +5448,7 @@ thing shown in the mode line otherwise."
       (define-key map projectile-keymap-prefix 'projectile-command-map))
     (easy-menu-define projectile-mode-menu map
       "Menu for Projectile"
-      '("Projectile"
+      '("Projectile" :visible projectile-show-menu
         ["Find file" projectile-find-file]
         ["Find file in known projects" projectile-find-file-in-known-projects]
         ["Find test file" projectile-find-test-file]



reply via email to

[Prev in Thread] Current Thread [Next in Thread]