aboutsummaryrefslogtreecommitdiff
path: root/common/.config
diff options
context:
space:
mode:
Diffstat (limited to 'common/.config')
-rw-r--r--common/.config/emacs/init.el.org21
1 files changed, 6 insertions, 15 deletions
diff --git a/common/.config/emacs/init.el.org b/common/.config/emacs/init.el.org
index 84ea87e..0425399 100644
--- a/common/.config/emacs/init.el.org
+++ b/common/.config/emacs/init.el.org
@@ -146,6 +146,11 @@ 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
@@ -278,7 +283,7 @@ Install =company= for completions. It is configured to start with no delay immed
(use-package orderless
:custom
(completion-styles '(orderless basic))
- (completion-category-overrideps '((file (styles basic partial-completion)))))
+ (completion-category-overrides '((file (styles basic partial-completion)))))
(use-package marginalia
:bind
(:map minibuffer-local-map
@@ -333,20 +338,6 @@ 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.