branch: elpa/systemd
commit 6f2e31ed7cf6cdba179fabc3c304ed520bd09a8c
Author: Mark Oteiza <[email protected]>
Commit: Mark Oteiza <[email protected]>
add a mode menu
---
systemd.el | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/systemd.el b/systemd.el
index b79074b..383b805 100644
--- a/systemd.el
+++ b/systemd.el
@@ -167,6 +167,14 @@ file, defaulting to the link under point, if any."
map)
"Keymap used in `systemd-mode' buffers.")
+(easy-menu-define systemd-mode-menu systemd-mode-map
+ "Menu used in `systemd-mode' buffers."
+ '("Systemd"
+ ["Open Unit File help" systemd-doc-open
+ :help "Documentation referenced in current buffer"]
+ ["Open systemd.directives(7)" systemd-doc-directives
+ :help "Index of configuration directives"]))
+
;;;###autoload (add-to-list 'auto-mode-alist '("\\.automount\\'" .
systemd-mode))
;;;###autoload (add-to-list 'auto-mode-alist '("\\.busname\\'" . systemd-mode))
;;;###autoload (add-to-list 'auto-mode-alist '("\\.mount\\'" . systemd-mode))