From 9191173309499e171d615b467ec3c15890c2469a Mon Sep 17 00:00:00 2001 From: jjanzen Date: Mon, 24 Feb 2025 12:12:40 -0600 Subject: system changes --- common/.config/emacs/init.el.org | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) (limited to 'common') diff --git a/common/.config/emacs/init.el.org b/common/.config/emacs/init.el.org index 0425399..84ea87e 100644 --- a/common/.config/emacs/init.el.org +++ b/common/.config/emacs/init.el.org @@ -146,11 +146,6 @@ Make Emacs confirm that I want to close it on kill. (setq confirm-kill-emacs 'yes-or-no-p) #+end_src -Make Emacs scroll one line at a time instead of big jumps. -#+begin_src emacs-lisp - (setq scroll-conservatively most-positive-fixnum) -#+end_src - Make Emacs delete trailing whitspace on save. This does not happen in =markdown-mode= which sometimes needs trailing whitespace. #+begin_src emacs-lisp (add-hook 'before-save-hook @@ -283,7 +278,7 @@ Install =company= for completions. It is configured to start with no delay immed (use-package orderless :custom (completion-styles '(orderless basic)) - (completion-category-overrides '((file (styles basic partial-completion))))) + (completion-category-overrideps '((file (styles basic partial-completion))))) (use-package marginalia :bind (:map minibuffer-local-map @@ -338,6 +333,20 @@ Configure and install =elfeed= to serve as an =rss= feed reader. It stores the f (setq rmh-elfeed-org-files (list "~/.config/emacs/feed.org"))) #+end_src +Configure smooth scrolling with =ultra-scroll=. +#+begin_src emacs-lisp + (use-package ultra-scroll + :vc ( + :url "https://github.com/jdtsmith/ultra-scroll" + :branch "main") + :init + (setq scroll-conservatively 101 + scroll-margin 0) + :config + (ultra-scroll-mode 1)) +#+end_src + + * Languages Configure =org-mode=. I use =~/org= as my =org= directory and hide emphasis markers because it's much easier to read that way. I enable =org-crypt= to allow reading and writing encrypted =org= files. I also replace bullets in bulleted lists with nicer looking icons. I configure faces to default to variable-width font, but switching to monospace where it is necessary. Finally, I use =visual-fill-column= to make =org= files display with a relatively narrow window centred in the frame. -- cgit v1.2.3