summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormattkae <mattkae@protonmail.com>2022-11-15 08:02:31 -0500
committermattkae <mattkae@protonmail.com>2022-11-15 08:02:31 -0500
commit887743979578cec55469988261cb68beebaa7ce0 (patch)
tree60cda27bfb0fe21b9d50a86bd709dc98a1ed203c
parent16ea00b5caa5b911ff8c74e3932fa2a85d988e44 (diff)
Improved buffer killing
-rw-r--r--README.md1
-rw-r--r--lisp/general.el7
2 files changed, 3 insertions, 5 deletions
diff --git a/README.md b/README.md
index d02375b..52d1caa 100644
--- a/README.md
+++ b/README.md
@@ -14,6 +14,7 @@ Emacs configuration file
- Refactor : `F2`
- Move line up/down: `M-<UP/DOWN>`
- Find references: `M-?`
+- Kill buffer: `C-x k`
## Per-language Features
diff --git a/lisp/general.el b/lisp/general.el
index 617b035..1794130 100644
--- a/lisp/general.el
+++ b/lisp/general.el
@@ -105,11 +105,7 @@
(setq neo-window-width 36)
;; Smooth scroll
-(setq redisplay-dont-pause t
- scroll-margin 7
- scroll-step 3
- scroll-conservatively 10000
- scroll-preserve-screen-position 1)
+(setq scroll-margin 7)
;; Line highlighting
(global-hl-line-mode 1)
@@ -157,6 +153,7 @@
(bind-key* (kbd "M-x") 'counsel-M-x)
(bind-key* (kbd "C-;") 'neotree-toggle)
(bind-key* (kbd "M-.") 'xref-find-definitions)
+(bind-key* (kbd "C-x k") 'kill-this-buffer)
(defun my-create-file (filename)
"Create a file and refresh neotree. FILENAME File to create."