From f5314f2985bb8c74661e0103dab863aa042636ab Mon Sep 17 00:00:00 2001 From: Quang Linh Le Date: Sat, 18 Apr 2015 05:07:26 +0200 Subject: [PATCH] Command S works with other modes (Customs, EIN...) --- contrib/osx/keybindings.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/contrib/osx/keybindings.el b/contrib/osx/keybindings.el index 7d3c51257..361d195fc 100644 --- a/contrib/osx/keybindings.el +++ b/contrib/osx/keybindings.el @@ -12,6 +12,9 @@ (global-set-key (kbd "s-x") 'kill-region) (global-set-key (kbd "s-w") 'kill-this-buffer) (global-set-key (kbd "s-z") 'undo-tree-undo) - (global-set-key (kbd "s-s") 'save-buffer) + (global-set-key (kbd "s-s") + (lambda () + (interactive) + (call-interactively (key-binding "\C-x\C-s")))) (global-set-key (kbd "s-Z") 'undo-tree-redo) (global-set-key (kbd "C-s-f") 'spacemacs/toggle-frame-fullscreen))