From 2a816b71e9c4a804e0bb6602ab04a3031a1ec5c1 Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Fri, 30 Aug 2019 18:54:26 -0400 Subject: [PATCH] emacs: add some convenient bindings --- .emacs.d/init.el | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 6210f90..b2c99f8 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -425,6 +425,7 @@ For disabling the behaviour for certain buffers and/or modes." ("C-c a i" . ielm) ("C-c e b" . eval-buffer) + ("C-c e e" . eval-last-sexp) ("C-c e r" . eval-region) ("C-c e i" . emacs-init-time) @@ -440,6 +441,8 @@ For disabling the behaviour for certain buffers and/or modes." ("C-x k" . kill-this-buffer) ("C-x K" . kill-buffer) + ("C-x s" . save-buffer) + ("C-x S" . save-some-buffers) :map emacs-lisp-mode-map ("" . b/add-elisp-section)) @@ -559,8 +562,8 @@ For disabling the behaviour for certain buffers and/or modes." ;; *the* right way to do git (use-package magit :defer 0.5 - :bind (("C-c g g" . magit-status) - ("C-c g s" . magit-status) + :bind (("C-x g" . magit-status) + ("C-c g g" . magit-status) ("C-c g b" . magit-blame-addition) ("C-c g l" . magit-log-buffer-file)) :config @@ -1293,8 +1296,7 @@ This function is intended for use with `ivy-ignore-buffers'." (use-package crux ; results in Waiting for git... [2 times] :defer 0.4 - :bind (("C-c b k" . crux-kill-other-buffers) - ("C-c d" . crux-duplicate-current-line-or-region) + :bind (("C-c d" . crux-duplicate-current-line-or-region) ("C-c D" . crux-duplicate-and-comment-current-line-or-region) ("C-c f c" . crux-copy-file-preserve-attributes) ("C-c f d" . crux-delete-file-and-buffer) -- 2.20.1