summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmin Bandali <bandali@gnu.org>2019-08-30 18:54:26 -0400
committerAmin Bandali <bandali@gnu.org>2019-08-30 18:54:26 -0400
commit2a816b71e9c4a804e0bb6602ab04a3031a1ec5c1 (patch)
treee7d1d8b8e44acc35ba29b7b09053b13ece39746c
parent82fd2d5420051cfbabbeafbcf7b4ff536573ee1c (diff)
downloadconfigs-2a816b71e9c4a804e0bb6602ab04a3031a1ec5c1.tar.gz
configs-2a816b71e9c4a804e0bb6602ab04a3031a1ec5c1.tar.xz
configs-2a816b71e9c4a804e0bb6602ab04a3031a1ec5c1.zip
emacs: add some convenient bindings
-rw-r--r--.emacs.d/init.el10
1 files 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
("<C-return>" . 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)