Add pixel precision to plainmacs.
This commit is contained in:
parent
35709eb06a
commit
971ed7e75d
@ -3,24 +3,27 @@
|
|||||||
|
|
||||||
INIT_SCRIPT=$(cat <<EOF
|
INIT_SCRIPT=$(cat <<EOF
|
||||||
(progn
|
(progn
|
||||||
(setq make-backup-files nil auto-save-default nil create-lockfiles nil)
|
(setq make-backup-files nil auto-save-default nil create-lockfiles nil)
|
||||||
(load-theme 'tango-dark t)
|
(load-theme 'tango-dark t)
|
||||||
(set-face-attribute 'default nil :background "black")
|
(set-face-attribute 'default nil :background "black")
|
||||||
;; Bright yellow highlighting for selected region
|
;; Bright yellow highlighting for selected region
|
||||||
(set-face-attribute 'region nil :background "#ffff50" :foreground "black")
|
(set-face-attribute 'region nil :background "#ffff50" :foreground "black")
|
||||||
;; Bright green cursor to distinguish from yellow region
|
;; Bright green cursor to distinguish from yellow region
|
||||||
(set-cursor-color "#ccff66")
|
(set-cursor-color "#ccff66")
|
||||||
;; Hightlight the current line
|
;; Hightlight the current line
|
||||||
(set-face-attribute 'line-number-current-line nil :foreground "white")
|
(set-face-attribute 'line-number-current-line nil :foreground "white")
|
||||||
;; Set default font
|
;; Set default font
|
||||||
(set-face-attribute 'default nil :height 100 :width 'regular :weight 'regular :family "Cascadia Mono")
|
(set-face-attribute 'default nil :height 100 :width 'regular :weight 'regular :family "Cascadia Mono")
|
||||||
;; Set fallback font for unicode glyphs
|
;; Set fallback font for unicode glyphs
|
||||||
(set-fontset-font "fontset-default" nil (font-spec :name "Noto Color Emoji"))
|
(set-fontset-font "fontset-default" nil (font-spec :name "Noto Color Emoji"))
|
||||||
(menu-bar-mode -1)
|
(menu-bar-mode -1)
|
||||||
(when (fboundp 'tool-bar-mode)
|
(when (fboundp 'tool-bar-mode)
|
||||||
(tool-bar-mode -1))
|
(tool-bar-mode -1))
|
||||||
(when ( fboundp 'scroll-bar-mode)
|
(when ( fboundp 'scroll-bar-mode)
|
||||||
(scroll-bar-mode -1)))
|
(scroll-bar-mode -1))
|
||||||
|
(pixel-scroll-precision-mode)
|
||||||
|
(setq frame-resize-pixelwise t)
|
||||||
|
)
|
||||||
EOF
|
EOF
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -16,4 +16,7 @@
|
|||||||
(when (fboundp 'tool-bar-mode)
|
(when (fboundp 'tool-bar-mode)
|
||||||
(tool-bar-mode -1))
|
(tool-bar-mode -1))
|
||||||
(when ( fboundp 'scroll-bar-mode)
|
(when ( fboundp 'scroll-bar-mode)
|
||||||
(scroll-bar-mode -1)))
|
(scroll-bar-mode -1))
|
||||||
|
(pixel-scroll-precision-mode)
|
||||||
|
(setq frame-resize-pixelwise t)
|
||||||
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user