diff options
| author | Nicholas Rodrigues Lordello <[email protected]> | 2025-04-13 21:28:23 +0200 |
|---|---|---|
| committer | Nicholas Rodrigues Lordello <[email protected]> | 2025-04-13 21:28:23 +0200 |
| commit | ccd425cf3fd0ac0084b9f5772a1407d7a718feca (patch) | |
| tree | c743de0d8545121174bd12da6d7390c0f4483f9d | |
| parent | c9219b69224879b512e39e850c6b7eeb037e95e1 (diff) | |
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).
| -rw-r--r-- | config/emacs/init.el | 4 | ||||
| -rw-r--r-- | config/emacs/sanemacs.el | 3 |
2 files changed, 6 insertions, 1 deletions
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 ;; <https://happihacking.com/blog/posts/2023/dev-containers-emacs/> ;; 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 +;; <https://github.com/rougier/nano-emacs> (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) |
