summaryrefslogtreecommitdiff
path: root/emacs
diff options
context:
space:
mode:
authorKjetil Orbekk <kj@orbekk.com>2023-03-03 07:26:54 -0500
committerKjetil Orbekk <kj@orbekk.com>2023-03-03 07:26:54 -0500
commit2968bf4aa8d404c881133b8025b427a098305d73 (patch)
tree2b6c4e4077ad034576b24a069478112228296332 /emacs
parentafe1b7ccc890434299589463e83450c922c7815b (diff)
Fix some keybindings
Diffstat (limited to 'emacs')
-rw-r--r--emacs/.config/emacs-kj/init.el10
1 files changed, 8 insertions, 2 deletions
diff --git a/emacs/.config/emacs-kj/init.el b/emacs/.config/emacs-kj/init.el
index 4a77f46..c4cc03a 100644
--- a/emacs/.config/emacs-kj/init.el
+++ b/emacs/.config/emacs-kj/init.el
@@ -43,7 +43,7 @@
(setq sentence-end-double-space nil)
(setq save-interprogram-paste-before-kill t)
(setq enable-recursive-minibuffers t)
-;; This interferes with meow hilighting with some themes.
+;; This interferes with meow highlighting with some themes.
; (global-hl-line-mode 1)
(global-auto-revert-mode 1)
@@ -686,7 +686,9 @@
(use-package emacs
:bind
- (("C-c C-b C-r" . revert-buffer)
+ (("C-w" . backward-kill-word)
+ ("C-c d" . kill-region)
+ ("C-c C-b C-r" . revert-buffer)
("C-c C-r C-e" . consult-flymake)
("C-c C-r C-f" . eglot-format)
("C-c C-r C-g" . recompile)
@@ -880,3 +882,7 @@
(calendar-iso-from-absolute
(calendar-absolute-from-gregorian (list month day year)))))
'font-lock-face 'calendar-iso-week-face))
+
+(setq ispell-local-dictionary "en_US")
+(add-hook 'text-mode-hook (defun kj/flyspell-mode () (flyspell-mode 1)))
+(add-hook 'prog-mode-hook (defun kj/flyspell-mode () (flyspell-prog-mode 1)))