update emacs conf to use smooth scroll on >=29

This commit is contained in:
liv 2023-03-06 11:47:42 +01:00
parent 853adf9036
commit 3758852885
2 changed files with 9 additions and 4 deletions

View file

@ -6,13 +6,13 @@
;; Some functionality uses this to identify you, e.g. GPG configuration, email ;; Some functionality uses this to identify you, e.g. GPG configuration, email
;; clients, file templates and snippets. It is optional. ;; clients, file templates and snippets. It is optional.
(setq user-full-name "mokou" (setq user-full-name "liv"
user-mail-address "mokou@fastmail.com") user-mail-address "shadows_withal@fastmail.com")
;; Maximize the window after startup ;; Maximize the window after startup
(add-to-list 'default-frame-alist '(fullscreen . maximized)) (add-to-list 'default-frame-alist '(fullscreen . maximized))
(setq doom-font (font-spec :family "JetBrains Mono" :size 14)) (setq doom-font (font-spec :family "Inconsolata" :size 16))
;; There are two ways to load a theme. Both assume the theme is installed and ;; There are two ways to load a theme. Both assume the theme is installed and
;; available. You can either set `doom-theme' or manually load a theme with the ;; available. You can either set `doom-theme' or manually load a theme with the
@ -27,6 +27,11 @@
;; change `org-directory'. It must be set before org loads! ;; change `org-directory'. It must be set before org loads!
(setq org-directory "~/Org/") (setq org-directory "~/Org/")
(if (>= emacs-major-version 29)
(progn
(pixel-scroll-precision-mode)
(setq pixel-scroll-precision-use-momentum t)))
;; Set default tab width to 2 ;; Set default tab width to 2
(setq tab-width 2) (setq tab-width 2)

View file

@ -60,7 +60,7 @@
;;lispy ; vim for lisp, for people who don't like vim ;;lispy ; vim for lisp, for people who don't like vim
;;multiple-cursors ; editing in many places at once ;;multiple-cursors ; editing in many places at once
;;objed ; text object editing for the innocent ;;objed ; text object editing for the innocent
parinfer ; turn lisp into python, sort of ;;parinfer ; turn lisp into python, sort of
;;rotate-text ; cycle region at point between text candidates ;;rotate-text ; cycle region at point between text candidates
snippets ; my elves. They type so I don't have to snippets ; my elves. They type so I don't have to
word-wrap ; soft wrapping with language-aware indent word-wrap ; soft wrapping with language-aware indent