From ccd425cf3fd0ac0084b9f5772a1407d7a718feca Mon Sep 17 00:00:00 2001 From: Nicholas Rodrigues Lordello Date: Sun, 13 Apr 2025 21:28:23 +0200 Subject: Stole Something from Emacs Nano In particular, I noticed that I was always doing 'C-x k RET', so I changed the keybinding to kill the current buffer (instead of prompting for which buffer to kill). --- config/emacs/init.el | 4 +++- config/emacs/sanemacs.el | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/config/emacs/init.el b/config/emacs/init.el index 075e901..b4460bf 100644 --- a/config/emacs/init.el +++ b/config/emacs/init.el @@ -4,7 +4,9 @@ ;; 1. Emacs over devcontainers/docker with TRAMP ;; ;; 2. Setup LLM coding: gptel, aidermacs -;; 3. Try out neocaml - tree-sitter based +;; 3. Try out neocaml - tree-sitter based OCaml mode +;; 4. Take some stuff from Emacs NANO +;; (load "~/.config/emacs/sanemacs.el" nil t) diff --git a/config/emacs/sanemacs.el b/config/emacs/sanemacs.el index 54ebca3..a59b862 100644 --- a/config/emacs/sanemacs.el +++ b/config/emacs/sanemacs.el @@ -56,6 +56,9 @@ :config (global-undo-tree-mode +1)) +;; Custom keybinds +(keymap-global-set "C-x k" #'kill-current-buffer) + ;; Use separate file for custom variables (setq custom-file "~/.cache/emacs/custom.el") (unless (file-exists-p custom-file) -- cgit v1.2.3