diff options
author | 2024-06-26 21:35:16 +0200 | |
---|---|---|
committer | 2024-06-28 17:07:26 +0200 | |
commit | 8572f175f86a5ebc6fa86d2a95f337b03dfc1c6c (patch) | |
tree | ef188bccfa9c1a73d3f35fd4454bbb1ff2c0e6a3 | |
parent | Don't fix whitespace in eclasses by default (diff) | |
download | ebuild-mode-8572f175f86a5ebc6fa86d2a95f337b03dfc1c6c.tar.gz ebuild-mode-8572f175f86a5ebc6fa86d2a95f337b03dfc1c6c.tar.bz2 ebuild-mode-8572f175f86a5ebc6fa86d2a95f337b03dfc1c6c.zip |
Deactivate some menu entries for eclasses
* ebuild-mode.el (ebuild-mode-menu): Deactivate entries that are
not useful in ebuild-eclass-mode.
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | ebuild-mode.el | 7 |
2 files changed, 8 insertions, 2 deletions
@@ -1,5 +1,8 @@ 2024-06-26 Ulrich Müller <ulm@gentoo.org> + * ebuild-mode.el (ebuild-mode-menu): Deactivate entries that are + not useful in ebuild-eclass-mode. + * ebuild-mode.el (ebuild-mode-fix-whitespace): Default to ebuild. 2024-06-25 Ulrich Müller <ulm@gentoo.org> diff --git a/ebuild-mode.el b/ebuild-mode.el index 79f1747..68da594 100644 --- a/ebuild-mode.el +++ b/ebuild-mode.el @@ -910,13 +910,16 @@ in a Gentoo profile." "Menu for `ebuild-mode'." `("Ebuild" ("ebuild commands" + :active (eq major-mode 'ebuild-mode) ["Run ebuild command" ebuild-run-command] ,@(mapcar (lambda (c) (vector c (list #'ebuild-run-command c))) (sort (copy-sequence ebuild-commands-list) #'string-lessp))) ["Run pkgdev command" ebuild-mode-run-pkgdev] ["Run pkgcheck command" ebuild-mode-run-pkgcheck] - ["Find Portage workdir" ebuild-mode-find-workdir] - ["Insert ebuild skeleton" ebuild-mode-insert-skeleton] + ["Find Portage workdir" ebuild-mode-find-workdir + :active (eq major-mode 'ebuild-mode)] + ["Insert ebuild skeleton" ebuild-mode-insert-skeleton + :active (eq major-mode 'ebuild-mode)] ["Set/unset keyword" ebuild-mode-keyword] ["Set/unset keywords (ekeyword syntax)" ebuild-mode-ekeyword] ["Mark all keywords as unstable" ebuild-mode-all-keywords-unstable] |