aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorjjanzen <jjanzen@jjanzen.ca>2025-02-24 12:12:40 -0600
committerjjanzen <jjanzen@jjanzen.ca>2025-02-24 12:12:40 -0600
commit9191173309499e171d615b467ec3c15890c2469a (patch)
treead28e87570121d5658de4eb245ea4b8d64c77a09 /common
parenta488582fd43d223dde72d7ebbb4a67ceaa097020 (diff)
system changes
Diffstat (limited to 'common')
-rw-r--r--common/.config/emacs/init.el.org21
1 files changed, 15 insertions, 6 deletions
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.