update emacs conf to use smooth scroll on >=29
This commit is contained in:
parent
853adf9036
commit
3758852885
2 changed files with 9 additions and 4 deletions
|
@ -6,13 +6,13 @@
|
|||
|
||||
;; Some functionality uses this to identify you, e.g. GPG configuration, email
|
||||
;; clients, file templates and snippets. It is optional.
|
||||
(setq user-full-name "mokou"
|
||||
user-mail-address "mokou@fastmail.com")
|
||||
(setq user-full-name "liv"
|
||||
user-mail-address "shadows_withal@fastmail.com")
|
||||
|
||||
;; Maximize the window after startup
|
||||
(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
|
||||
;; 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!
|
||||
(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
|
||||
(setq tab-width 2)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue