[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ssh-deploy 8dadac5 032/133: Made menu-bar feature optio
From: |
Stefan Monnier |
Subject: |
[elpa] externals/ssh-deploy 8dadac5 032/133: Made menu-bar feature optional |
Date: |
Sat, 27 Mar 2021 14:48:38 -0400 (EDT) |
branch: externals/ssh-deploy
commit 8dadac58af7ca196566c59f0cc5b7de3ab6d954f
Author: Christian Johansson <christian@cvj.se>
Commit: Christian Johansson <christian@cvj.se>
Made menu-bar feature optional
---
README.md | 2 ++
ssh-deploy.el | 12 +++++++++---
2 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/README.md b/README.md
index 8cf9d88..44efd34 100644
--- a/README.md
+++ b/README.md
@@ -154,6 +154,7 @@ By combining a `~/.authinfo.gpg` setup and a `public-key`
setup you should be ab
(add-to-list 'load-path "~/.emacs.d/ssh-deploy/")
(require 'ssh-deploy)
(ssh-deploy-line-mode) ;; If you want mode-line feature
+(ssh-deploy-add-menu) ;; If you want menu-bar feature
(ssh-deploy-add-after-save-hook) ;; If you want automatic upload support
(ssh-deploy-add-find-file-hook) ;; If you want detecting remote changes support
(global-set-key (kbd "C-c C-z") 'ssh-deploy-prefix-map)
@@ -175,6 +176,7 @@ If you want to use the pre-defined hydra you can use this
key-binding instead:
(find-file . ssh-deploy-find-file))
:config
(ssh-deploy-line-mode) ;; If you want mode-line feature
+ (ssh-deploy-add-menu) ;; If you want menu-bar feature
)
```
diff --git a/ssh-deploy.el b/ssh-deploy.el
index 1cfc997..844cd95 100644
--- a/ssh-deploy.el
+++ b/ssh-deploy.el
@@ -58,8 +58,11 @@
;; - To setup automatic storing of base revisions and detection of remote
changes do this:
;; Add to init-script: (ssh-deploy-add-find-file-hook)
;;
-;; - To enable mode line to this:
-;; (ssh-deploy-line-mode)
+;; - To enable mode-line feature do this:
+;; (ssh-deploy-line-mode)
+;;
+;; - To enable menu-bar feature do this:
+;; (ssh-deploy-add-menu)
;;
;; - To set global key-bindings do something like this:
;; (global-set-key (kbd "C-c C-z") 'ssh-deploy-prefix-map)
@@ -76,6 +79,7 @@
;; (find-file . ssh-deploy-find-file))
;; :config
;; (ssh-deploy-line-mode) ;; If you want mode-line feature
+;; (ssh-deploy-add-menu) ;; If you want menu-bar feature
;; )
;;
;;
@@ -1350,7 +1354,9 @@
(define-key-after global-map [menu-bar sshdeploy] (cons "Deployment"
ssh-deploy-menu-map) 'tools)
(define-key-after global-map [menu-bar sshdeploy] 'undefined 'tools)))
-(add-hook 'menu-bar-update-hook 'ssh-deploy-menu-map-update)
+(defun ssh-deploy-add-menu ()
+ "Add menu-bar support."
+ (add-hook 'menu-bar-update-hook 'ssh-deploy-menu-map-update))
;;; Mode Line
- [elpa] externals/ssh-deploy d7a42fe 015/133: Replaced (concat) with (expand-file-name), (continued)
- [elpa] externals/ssh-deploy d7a42fe 015/133: Replaced (concat) with (expand-file-name), Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 80cd448 011/133: Merge branch 'master' of https://github.com/cjohansson/emacs-ssh-deploy, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 861f1c7 013/133: Updated documentation, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 2e3cf30 016/133: Fixed issue with directory differences, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy d5386ab 018/133: Renamed internal argument with-threads to async-with-threads, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy cb4c6ff 020/133: Using (expand-file-name) instead of (concat), Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy e0bd19c 022/133: Removed obsolete arguments from directory-diff operations, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 102943f 028/133: Added pre-defined prefix key map, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy afbcc70 030/133: mode-line now shows whether current file is under deployment, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 0e7c608 031/133: Deployment menu only shows when current buffer is deployment, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 8dadac5 032/133: Made menu-bar feature optional,
Stefan Monnier <=
- [elpa] externals/ssh-deploy b409812 033/133: Started on implementing changes to diff-mode, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 13dcacb 034/133: More cosmetic changes to diff mode, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 4268c8b 035/133: Fixed bug with constant definition, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 7be2881 038/133: Fixed proper symbols for actions, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 3c5fe09 037/133: More work on diff mode cosmetic changes, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 95a932a 047/133: Started on unit-tests, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 0b43ceb 048/133: Added unit tests for get-revision-path and is-not-empty-string, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 4ff27e9 049/133: Minor modifications after suggestions from flycheck-package, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 5871711 052/133: Renamed TRAMP to Tramp and added link to lisp code style, Stefan Monnier, 2021/03/27