summaryrefslogtreecommitdiffstats
path: root/jeschli/2configs/emacs.nix
diff options
context:
space:
mode:
authorJeschli <jeschli@gmail.com>2019-09-24 05:37:16 +0200
committerJeschli <jeschli@gmail.com>2019-09-24 05:37:16 +0200
commit9c10dcf51c8ec312080ecf1da31949afc409a690 (patch)
treeea722c081a744d954709e3c07593adba58f36875 /jeschli/2configs/emacs.nix
parent9f08df4b151b7dd266097fdf1b886248f1e7a2f2 (diff)
j emacs: bind F5 to kill actual buffer
Diffstat (limited to 'jeschli/2configs/emacs.nix')
-rw-r--r--jeschli/2configs/emacs.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/jeschli/2configs/emacs.nix b/jeschli/2configs/emacs.nix
index 4f272d131..15ded18c8 100644
--- a/jeschli/2configs/emacs.nix
+++ b/jeschli/2configs/emacs.nix
@@ -127,6 +127,12 @@ let
(global-set-key "\C-x\ \C-r" 'recentf-open-files)
'';
+ killActualBuffer = ''
+ (fset 'kill-actual-buffer
+ [?\C-x ?k return])
+ (global-set-key (kbd "<f5>") 'kill-actual-buffer)
+ '';
+
dotEmacs = pkgs.writeText "dot-emacs" ''
${packageRepos}