From 2f49181212d717bd1c2a7c79fe94680f10e9473e Mon Sep 17 00:00:00 2001 From: Erwin Boskma Date: Thu, 19 Oct 2023 08:36:28 +0200 Subject: [PATCH] emacs: Tweak some settings --- home-manager/modules/emacs/config.org | 28 ++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/home-manager/modules/emacs/config.org b/home-manager/modules/emacs/config.org index e59dbb7..0840603 100644 --- a/home-manager/modules/emacs/config.org +++ b/home-manager/modules/emacs/config.org @@ -331,12 +331,24 @@ Default indenting to spaces. If tabs are necessary, this can be set buffer-local (setq-default indent-tabs-mode nil) #+end_src +Show trailing whitespace + +#+begin_src emacs-lisp + (setq show-trailing-whitespace t) +#+end_src + Delete trailing whitespace on save. #+begin_src emacs-lisp (add-hook 'before-save-hook 'delete-trailing-whitespace) #+end_src +Sentences end in one space, not two. We're not using typewriters. + +#+begin_src emacs-lisp + (setq sentence-end-double-space nil) +#+end_src + Don't move files to trash when deleting. #+begin_src emacs-lisp @@ -361,10 +373,18 @@ Set fill column to 80 (setq-default fill-column 80) #+end_src +Kill whole lines instead of clearing them + +#+begin_src emacs-lisp + (setq kill-whole-line t) +#+end_src + * Interface ** Easy edit config file -#+begin_src emacs-lisp +Disabled because the configuration is handled by Nix using [[https://github.com/nix-community/emacs-overlay][emacs-overlay]] + +#+begin_src emacs-lisp :tangle no (defun find-config () "Edit config.org" (interactive) @@ -376,6 +396,12 @@ Set fill column to 80 #+end_src ** Appearance +Enable pixel scrolling. + +#+begin_src emacs-lisp + (setq pixel-scroll-precision-mode t) +#+end_src + I prefer the [[https://draculatheme.com][dracula theme]] #+begin_src emacs-lisp