From 9c10dcf51c8ec312080ecf1da31949afc409a690 Mon Sep 17 00:00:00 2001 From: Jeschli Date: Tue, 24 Sep 2019 05:37:16 +0200 Subject: j emacs: bind F5 to kill actual buffer --- jeschli/2configs/emacs-org-agenda.nix | 3 --- jeschli/2configs/emacs.nix | 6 ++++++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/jeschli/2configs/emacs-org-agenda.nix b/jeschli/2configs/emacs-org-agenda.nix index d2432f570..437abe8d4 100644 --- a/jeschli/2configs/emacs-org-agenda.nix +++ b/jeschli/2configs/emacs-org-agenda.nix @@ -28,7 +28,6 @@ let ;; Custom Key Bindings (global-set-key (kbd "") 'org-agenda) -(global-set-key (kbd "") 'bh/org-todo) (global-set-key (kbd "") 'bh/widen) (global-set-key (kbd "") 'bh/set-truncate-lines) (global-set-key (kbd "") 'org-cycle-agenda-files) @@ -1321,8 +1320,6 @@ Skip project and sub-project tasks, habits, and loose non-project tasks." (define-abbrev org-mode-abbrev-table "selisp" "" 'skel-org-block-elisp) -(global-set-key (kbd "") 'bh/org-todo) - (defun bh/org-todo (arg) (interactive "p") (if (equal arg 4) 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 "") 'kill-actual-buffer) + ''; + dotEmacs = pkgs.writeText "dot-emacs" '' ${packageRepos} -- cgit v1.2.3