summaryrefslogtreecommitdiffstats
path: root/init.el
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2019-12-26 21:27:42 +0000
committerMatthew Lemon <lemon@matthewlemon.com>2019-12-26 21:27:42 +0000
commit920dbb2fc751660a1dd9b563af259e16876f749a (patch)
tree5a57e523f8406d4f596affe45d71309ceb7ce8ff /init.el
parent8e1389af5895fdf99600f59521aec2ba387b6f0e (diff)
added func to kill other buffers
Diffstat (limited to 'init.el')
-rw-r--r--init.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/init.el b/init.el
index 21f93a8..867d3b1 100644
--- a/init.el
+++ b/init.el
@@ -137,6 +137,12 @@
;; (global-set-key "\C-x\C-k" 'kill-region)
;; (global-set-key "\C-c\C-k" 'kill-region)
+;; kill other buffers
+(defun kill-other-buffers ()
+ "Kill all other buffers."
+ (interactive)
+ (mapc 'kill-buffer (delq (current-buffer) (buffer-list))))
+
;; mu4e
;; the exact path may differ --- check it
(add-to-list 'load-path "/usr/share/emacs/site-lisp/mu4e")