From: Amin Bandali Date: Fri, 30 Aug 2019 22:54:26 +0000 (-0400) Subject: emacs: add some convenient bindings X-Git-Url: https://git.shemshak.org/gitweb.cgi/~bandali/configs/commitdiff_plain/2a816b71e9c4a804e0bb6602ab04a3031a1ec5c1 emacs: add some convenient bindings --- 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)